Skip to content

Commit

Permalink
fix(ts-integration): add missing await (#2421)
Browse files Browse the repository at this point in the history
Signed-off-by: tomg10 <[email protected]>
  • Loading branch information
tomg10 authored Jul 10, 2024
1 parent a33c80c commit ca064e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/tests/ts-integration/tests/erc20.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ describe('ERC20 contract checks', () => {
});

test('Token properties are correct', async () => {
expect(aliceErc20.name()).resolves.toBe(tokenDetails.name);
expect(aliceErc20.decimals()).resolves.toBe(tokenDetails.decimals);
expect(aliceErc20.symbol()).resolves.toBe(tokenDetails.symbol);
expect(aliceErc20.balanceOf(alice.address)).resolves.toBeGreaterThan(0n); // 'Alice should have non-zero balance'
await expect(aliceErc20.name()).resolves.toBe(tokenDetails.name);
await expect(aliceErc20.decimals()).resolves.toBe(tokenDetails.decimals);
await expect(aliceErc20.symbol()).resolves.toBe(tokenDetails.symbol);
await expect(aliceErc20.balanceOf(alice.address)).resolves.toBeGreaterThan(0n); // 'Alice should have non-zero balance'
});

test('Can perform a deposit', async () => {
Expand Down

0 comments on commit ca064e4

Please sign in to comment.