We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f86e7ee commit 81af0f7Copy full SHA for 81af0f7
app/components/Views/confirmations/utils/generic.test.ts
@@ -2,15 +2,6 @@ import { CHAIN_IDS } from '@metamask/transaction-controller';
2
import { TokenI } from '../../../UI/Tokens/types';
3
import { getHostFromUrl, isNativeToken } from './generic';
4
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
-
14
describe('generic utils', () => {
15
describe('getHostFromUrl', () => {
16
it('returns undefined when url is empty', () => {
0 commit comments