File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
frontends/web/src/components/balance Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -102,8 +102,9 @@ describe('components/balance/balance', () => {
102102 }
103103 } ;
104104 const { getByTestId } = render ( < Balance balance = { MOCK_BALANCE } /> ) ;
105- expect ( getByTestId ( 'availableBalance' ) . textContent ) . toBe ( '0.005BTC512USD' ) ;
106- expect ( getByTestId ( 'incomingBalance' ) . textContent ) . toBe ( '+0.003 BTC / 512 USD' ) ;
105+ expect ( getByTestId ( 'availableBalance' ) . textContent ) . toBe ( '0.005 BTC 512 USD' ) ;
106+ expect ( getByTestId ( 'incomingBalance' ) . textContent ) . toContain ( '+0.003 BTC' ) ;
107+ expect ( getByTestId ( 'incomingBalance' ) . textContent ) . toContain ( '512 USD' ) ;
107108 } ) ;
108109} ) ;
109110
@@ -176,8 +177,9 @@ describe('components/balance/balance', () => {
176177 }
177178 } ;
178179 const { getByTestId } = render ( < Balance balance = { MOCK_BALANCE } /> ) ;
179- expect ( getByTestId ( 'availableBalance' ) . textContent ) . toBe ( '0.005BTC512USD' ) ;
180- expect ( getByTestId ( 'incomingBalance' ) . textContent ) . toBe ( '+0.003 BTC / 1,511.99 USD' ) ;
180+ expect ( getByTestId ( 'availableBalance' ) . textContent ) . toBe ( '0.005 BTC 512 USD' ) ;
181+ expect ( getByTestId ( 'incomingBalance' ) . textContent ) . toContain ( '+0.003 BTC' ) ;
182+ expect ( getByTestId ( 'incomingBalance' ) . textContent ) . toContain ( '1,511.99 USD' ) ;
181183 } ) ;
182184 afterEach ( ( ) => {
183185 vi . restoreAllMocks ( ) ;
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ export const Balance = ({
4949 enableRotateUnit = { ! noRotateFiat }
5050 unitClassName = { style . unit }
5151 />
52+ { ' ' }
5253 < AmountWithUnit
5354 amount = { balance . available }
5455 enableRotateUnit = { ! noRotateFiat }
@@ -64,6 +65,7 @@ export const Balance = ({
6465 className = { style . incomingBalance }
6566 data-testid = "incomingBalance" >
6667 +< AmountWithUnit amount = { balance . incoming } />
68+ { ' ' }
6769 < span className = { style . incomingConversion } >
6870 /
6971 < AmountWithUnit
You can’t perform that action at this time.
0 commit comments