From e3750d0c31eb63a6627a6e3cc47542cea7c1915e Mon Sep 17 00:00:00 2001 From: Dhruv Kelawala Date: Thu, 13 Oct 2022 16:07:37 +0530 Subject: [PATCH] fix: getBlock test --- __tests__/defaultProvider.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/__tests__/defaultProvider.test.ts b/__tests__/defaultProvider.test.ts index ca471d86c..9464f2b91 100644 --- a/__tests__/defaultProvider.test.ts +++ b/__tests__/defaultProvider.test.ts @@ -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'); }); @@ -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');