Skip to content

Commit

Permalink
Merge pull request binary-com#63 from nada-deriv/revert-chanegs
Browse files Browse the repository at this point in the history
fix: revert unwanted changes from master
  • Loading branch information
farrah-deriv committed Aug 29, 2023
2 parents 5ff0142 + 3410890 commit 5f0b833
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
36 changes: 18 additions & 18 deletions packages/components/stories/icon/icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const icons =
'IcAppstoreWalletUsdLight',
'IcAppstoreWalletUsdcLight',
'IcAppstoreWalletUsdtLight',
'IcAppstoreWarning',
'IcAppstoreWarning'
],
'brand': [
'IcBrandDerivEzWordmark',
Expand All @@ -64,7 +64,7 @@ export const icons =
'IcBrandDmt5FinancialStp',
'IcBrandDmt5Financial',
'IcBrandDmt5Synthetics',
'IcBrandDxtradeWordmark',
'IcBrandDxtradeWordmark'
],
'cashier': [
'IcCashierAdd',
Expand Down Expand Up @@ -238,7 +238,7 @@ export const icons =
'IcCashierWyreLight',
'IcCashierZenithbankDark',
'IcCashierZenithbankLight',
'IcCashier',
'IcCashier'
],
'common': [
'IcAccountCross',
Expand Down Expand Up @@ -611,7 +611,7 @@ export const icons =
'IcWip',
'IcZingpay',
'IcZoomIn',
'IcZoomOut',
'IcZoomOut'
],
'contract': [
'IcContractBarrier',
Expand All @@ -629,7 +629,7 @@ export const icons =
'IcContractStartTimeCircle',
'IcContractStartTime',
'IcContractStrike',
'IcContractTarget',
'IcContractTarget'
],
'currency': [
'IcCurrencyAud',
Expand All @@ -653,10 +653,10 @@ export const icons =
'IcCurrencyUsdc',
'IcCurrencyUsdk',
'IcCurrencyUst',
'IcCurrencyVirtual',
'IcCurrencyVirtual'
],
'derivez': [
'IcDerivez',
'IcDerivez'
],
'dxtrade': [
'IcDxtradeDerivX',
Expand All @@ -673,7 +673,7 @@ export const icons =
'IcDxtradeFinancialPlatform',
'IcDxtradeFinancial',
'IcDxtradeOnePassword',
'IcDxtradeSyntheticPlatform',
'IcDxtradeSyntheticPlatform'
],
'flag': [
'IcFlagDe',
Expand All @@ -690,7 +690,7 @@ export const icons =
'IcFlagUk',
'IcFlagVi',
'IcFlagZhCn',
'IcFlagZhTw',
'IcFlagZhTw'
],
'mt5': [
'IcMt5Acuity',
Expand Down Expand Up @@ -719,7 +719,7 @@ export const icons =
'IcMt5SyntheticDashboard',
'IcMt5SyntheticIndices',
'IcMt5SyntheticPlatform',
'IcMt5TradeTypes',
'IcMt5TradeTypes'
],
'option': [
'IcOptionAccumulators',
Expand All @@ -737,7 +737,7 @@ export const icons =
'IcOptionOverUnder',
'IcOptionRaiseFall',
'IcOptionTouchNotouch',
'IcOptionUpDownAsian',
'IcOptionUpDownAsian'
],
'rebranding': [
'IcRebrandingBinaryBot',
Expand All @@ -758,7 +758,7 @@ export const icons =
'IcRebrandingDxtrade',
'IcRebrandingMt5Logo',
'IcRebrandingSmarttraderDashboard',
'IcRebrandingSmarttrader',
'IcRebrandingSmarttrader'
],
'stock': [
'IcStockAdidasSalomon',
Expand Down Expand Up @@ -808,7 +808,7 @@ export const icons =
'IcStockVisa',
'IcStockWallMart',
'IcStockWaltDisney',
'IcStockZoom',
'IcStockZoom'
],
'tradetype': [
'IcTradetypeAccu',
Expand Down Expand Up @@ -847,7 +847,7 @@ export const icons =
'IcTradetypeTurbosshort',
'IcTradetypeUpordown',
'IcTradetypeVanillaLongCall',
'IcTradetypeVanillaLongPut',
'IcTradetypeVanillaLongPut'
],
'underlying': [
'IcUnderlying1HZ100V',
Expand Down Expand Up @@ -1006,7 +1006,7 @@ export const icons =
'IcUnderlyingWLDEUR',
'IcUnderlyingWLDGBP',
'IcUnderlyingWLDUSD',
'IcUnderlyingWLDXAU',
'IcUnderlyingWLDXAU'
],
'wallet': [
'IcWalletClearFunds',
Expand Down Expand Up @@ -1042,6 +1042,6 @@ export const icons =
'IcWalletWebmoneyLight',
'IcWalletWebmoney',
'IcWalletZingpayDark',
'IcWalletZingpayLight',
],
}
'IcWalletZingpayLight'
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ describe('<SearchInput />', () => {
});
it('should not display trailing clear icon when input is empty', () => {
render(<SearchInput {...mocked_props} />);
expect(screen.getByTestId('mockedIcon')).toBeInTheDocument();
expect(screen.getAllByTestId('mockedIcon').length).toBe(1);
});
it('should display trailing clear icon when input is not empty', () => {
mocked_props.value = 'test';
render(<SearchInput {...mocked_props} />);
expect(screen.getAllByTestId('mockedIcon')).toHaveLength(2);
expect(screen.getAllByTestId('mockedIcon').length).toBe(2);
});
it('should render correct text when value is changed', () => {
mocked_props.value = 'test';
Expand Down

0 comments on commit 5f0b833

Please sign in to comment.