Skip to content

Commit 81af0f7

Browse files
committed
Fix test
1 parent f86e7ee commit 81af0f7

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

app/components/Views/confirmations/utils/generic.test.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,6 @@ import { CHAIN_IDS } from '@metamask/transaction-controller';
22
import { TokenI } from '../../../UI/Tokens/types';
33
import { getHostFromUrl, isNativeToken } from './generic';
44

5-
jest.mock('./asset', () => ({
6-
getNativeTokenAddress: jest.fn((chainId: string) => {
7-
if (chainId === CHAIN_IDS.POLYGON) {
8-
return '0x0000000000000000000000000000000000001010';
9-
}
10-
return '0x0000000000000000000000000000000000000000';
11-
}),
12-
}));
13-
145
describe('generic utils', () => {
156
describe('getHostFromUrl', () => {
167
it('returns undefined when url is empty', () => {

0 commit comments

Comments
 (0)