Skip to content

Commit

Permalink
fix: getBlock test
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvkelawala committed Oct 13, 2022
1 parent 2b6aa24 commit e3750d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions __tests__/defaultProvider.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ describe('defaultProvider', () => {
});

test('getBlock() -> { blockNumber }', async () => {
const block = await testProvider.getBlock();
const block = await testProvider.getBlock('latest');
return expect(block).toHaveProperty('block_number');
});

Expand Down Expand Up @@ -136,7 +136,7 @@ describe('defaultProvider', () => {
describe(`Provider methods if not devnet`, () => {
describe('getBlock', () => {
test('getBlock by tag pending', async () => {
latestBlock = await provider.getBlock();
latestBlock = await provider.getBlock('latest');
expect(latestBlock).toHaveProperty('block_hash');
expect(latestBlock).toHaveProperty('parent_hash');
expect(latestBlock).toHaveProperty('block_number');
Expand Down

0 comments on commit e3750d0

Please sign in to comment.