Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
janek26 committed May 6, 2022
1 parent 751c2ed commit f535edb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion __tests__/account.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { isBN } from 'bn.js';

import typedDataExample from '../__mocks__/typedDataExample.json';
import { Account, Contract, defaultProvider, ec, number, stark } from '../src';
import { toBN } from '../src/utils/number';
Expand Down Expand Up @@ -50,7 +52,7 @@ describe('deploy and test Wallet', () => {
entrypoint: 'transfer',
calldata: [erc20.address, '10'],
});
expect(typeof amount).toBe('number');
expect(isBN(amount)).toBe(true);
expect(typeof unit).toBe('string');
});

Expand Down
6 changes: 3 additions & 3 deletions __tests__/provider.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ describe('defaultProvider', () => {

test('getTransactionReceipt', async () => {
return expect(
defaultProvider.getTransactionReceipt({
txHash: '0x37013e1cb9c133e6fe51b4b371b76b317a480f56d80576730754c1662582348',
})
defaultProvider.getTransactionReceipt(
'0x37013e1cb9c133e6fe51b4b371b76b317a480f56d80576730754c1662582348'
)
).resolves.not.toThrow();
});

Expand Down

0 comments on commit f535edb

Please sign in to comment.