Skip to content

Commit f535edb

Browse files
committed
fix: tests
1 parent 751c2ed commit f535edb

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

__tests__/account.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { isBN } from 'bn.js';
2+
13
import typedDataExample from '../__mocks__/typedDataExample.json';
24
import { Account, Contract, defaultProvider, ec, number, stark } from '../src';
35
import { toBN } from '../src/utils/number';
@@ -50,7 +52,7 @@ describe('deploy and test Wallet', () => {
5052
entrypoint: 'transfer',
5153
calldata: [erc20.address, '10'],
5254
});
53-
expect(typeof amount).toBe('number');
55+
expect(isBN(amount)).toBe(true);
5456
expect(typeof unit).toBe('string');
5557
});
5658

__tests__/provider.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ describe('defaultProvider', () => {
7676

7777
test('getTransactionReceipt', async () => {
7878
return expect(
79-
defaultProvider.getTransactionReceipt({
80-
txHash: '0x37013e1cb9c133e6fe51b4b371b76b317a480f56d80576730754c1662582348',
81-
})
79+
defaultProvider.getTransactionReceipt(
80+
'0x37013e1cb9c133e6fe51b4b371b76b317a480f56d80576730754c1662582348'
81+
)
8282
).resolves.not.toThrow();
8383
});
8484

0 commit comments

Comments
 (0)