Skip to content

Commit

Permalink
fix: ts
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Mar 31, 2024
1 parent 15be6ea commit 8fe6ed1
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/celo/fees.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,11 @@ describe('celo/fees', () => {

test('calls the client when feeCurrency is provided', async () => {
const requestMock = vi.spyOn(client, 'request')
// @ts-ignore
requestMock.mockImplementation((request) => {
switch (request.method) {
case 'eth_gasPrice':
return '11619349802'
case 'eth_maxPriorityFeePerGas':
return '2323869960'
}
if (request.method === 'eth_gasPrice') return '11619349802'
if (request.method === 'eth_maxPriorityFeePerGas') return '2323869960'
return
})

expect(celo.fees.estimateFeesPerGas).toBeTypeOf('function')
Expand Down

0 comments on commit 8fe6ed1

Please sign in to comment.