@@ -46,8 +46,8 @@ describe('AccountStore', () => {
4646 } ) ;
4747
4848 it ( 'should return sorted accounts' , async ( ) => {
49- const a = new Account ( rootStore , { ...poolInitAccount , value : 300 } ) ;
50- const b = new Account ( rootStore , { ...poolInitAccount , value : 100 } ) ;
49+ const a = new Account ( rootStore , { ...poolInitAccount , value : ' 300' } ) ;
50+ const b = new Account ( rootStore , { ...poolInitAccount , value : ' 100' } ) ;
5151 const c = new Account ( rootStore , {
5252 ...poolInitAccount ,
5353 expirationHeight : 5000 ,
@@ -76,8 +76,8 @@ describe('AccountStore', () => {
7676 } ) ;
7777
7878 it ( 'should excluded closed accounts in sorted accounts' , async ( ) => {
79- const a = new Account ( rootStore , { ...poolInitAccount , value : 300 } ) ;
80- const b = new Account ( rootStore , { ...poolInitAccount , value : 100 } ) ;
79+ const a = new Account ( rootStore , { ...poolInitAccount , value : ' 300' } ) ;
80+ const b = new Account ( rootStore , { ...poolInitAccount , value : ' 100' } ) ;
8181 const c = new Account ( rootStore , {
8282 ...poolInitAccount ,
8383 expirationHeight : 5000 ,
@@ -158,7 +158,7 @@ describe('AccountStore', () => {
158158
159159 it ( 'should create a new Account' , async ( ) => {
160160 expect ( store . accounts . size ) . toEqual ( 0 ) ;
161- await store . createAccount ( 3000000 , 4032 ) ;
161+ await store . createAccount ( Big ( 3000000 ) , 4032 ) ;
162162 expect ( store . accounts . size ) . toEqual ( 1 ) ;
163163 expect ( store . activeAccount ) . toBeDefined ( ) ;
164164 } ) ;
@@ -168,7 +168,7 @@ describe('AccountStore', () => {
168168 throw new Error ( 'test-err' ) ;
169169 } ) ;
170170 expect ( rootStore . appView . alerts . size ) . toBe ( 0 ) ;
171- await store . createAccount ( 3000000 , 4032 ) ;
171+ await store . createAccount ( Big ( 3000000 ) , 4032 ) ;
172172 await waitFor ( ( ) => {
173173 expect ( rootStore . appView . alerts . size ) . toBe ( 1 ) ;
174174 expect ( values ( rootStore . appView . alerts ) [ 0 ] . message ) . toBe ( 'test-err' ) ;
@@ -216,7 +216,9 @@ describe('AccountStore', () => {
216216 it ( 'should deposit funds into an account' , async ( ) => {
217217 await store . fetchAccounts ( ) ;
218218 const txid = await store . deposit ( 1 ) ;
219- expect ( + store . activeAccount . totalBalance ) . toBe ( poolDepositAccount . account ?. value ) ;
219+ expect ( store . activeAccount . totalBalance . toString ( ) ) . toBe (
220+ poolDepositAccount . account ?. value ,
221+ ) ;
220222 expect ( txid ) . toEqual ( poolDepositAccount . depositTxid ) ;
221223 } ) ;
222224
@@ -236,7 +238,9 @@ describe('AccountStore', () => {
236238 it ( 'should withdraw funds from an account' , async ( ) => {
237239 await store . fetchAccounts ( ) ;
238240 const txid = await store . withdraw ( 1 ) ;
239- expect ( + store . activeAccount . totalBalance ) . toBe ( poolWithdrawAccount . account ?. value ) ;
241+ expect ( store . activeAccount . totalBalance . toString ( ) ) . toBe (
242+ poolWithdrawAccount . account ?. value ,
243+ ) ;
240244 expect ( txid ) . toEqual ( poolWithdrawAccount . withdrawTxid ) ;
241245 } ) ;
242246
0 commit comments