Skip to content

Commit

Permalink
test: our tests don't understand this fancy ES syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
steveluscher committed Jun 21, 2022
1 parent edd5643 commit 5848e7b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions web3.js/test/connection.test.ts
Expand Up @@ -2197,7 +2197,7 @@ describe('Connection', function () {
expect(nullResponse).to.be.null;
});

it('get transactions', async () => {
it('get transactions', async function () {
await mockRpcResponse({
method: 'getSlot',
params: [],
Expand Down Expand Up @@ -2325,8 +2325,11 @@ describe('Connection', function () {
},
],
});
const result = await connection.getTransactions([transaction]);
expect(result[0]?.transaction.message.isAccountSigner(0)).to.be.true;
const [firstResult] = await connection.getTransactions([transaction]);
if (firstResult == null) {
expect.fail('Expected `getTransactions()` to return one result');
}
expect(firstResult.transaction.message.isAccountSigner(0)).to.be.true;
});

if (mockServer) {
Expand Down

0 comments on commit 5848e7b

Please sign in to comment.