Skip to content

Commit

Permalink
add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
avkos committed May 21, 2024
1 parent 2a79ade commit 550f1ce
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ along with web3.js. If not, see <http://www.gnu.org/licenses/>.
*/
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();
Expand All @@ -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',
}));
Expand Down

0 comments on commit 550f1ce

Please sign in to comment.