From 550f1cef2c942e867c4659af5fe92cc2c98a91bf Mon Sep 17 00:00:00 2001 From: Oleksii Kosynskyi Date: Tue, 21 May 2024 18:15:13 -0400 Subject: [PATCH] add unit test --- .../test/unit/utils/get_transaction_gas_pricing.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/web3-eth/test/unit/utils/get_transaction_gas_pricing.test.ts b/packages/web3-eth/test/unit/utils/get_transaction_gas_pricing.test.ts index b827550db84..30d3e5beaf9 100644 --- a/packages/web3-eth/test/unit/utils/get_transaction_gas_pricing.test.ts +++ b/packages/web3-eth/test/unit/utils/get_transaction_gas_pricing.test.ts @@ -16,9 +16,9 @@ along with web3.js. If not, see . */ import { Web3Context } from 'web3-core'; +import { FMT_BYTES, FMT_NUMBER } from 'web3-types'; import * as RpcMethodWrappers from '../../../src/rpc_method_wrappers'; import { getTransactionGasPricing } from '../../../src/utils/get_transaction_gas_pricing'; -import { FMT_BYTES, FMT_NUMBER } from 'web3-types'; describe('getTransactionGasPricing', () => { const web3Context = new Web3Context(); @@ -30,7 +30,7 @@ describe('getTransactionGasPricing', () => { .mockImplementation(async () => gasPrice); const getBlockSpy = jest .spyOn(RpcMethodWrappers, 'getBlock') - // @ts-ignore + // @ts-expect-error only for testing purposes .mockImplementation(async () => ({ baseFeePerGas: '0x0', }));