Skip to content

Commit 4c0a990

Browse files
committed
test: update metamask-controller unit tests
1 parent 5e24fef commit 4c0a990

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/scripts/metamask-controller.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ import { createTestProviderTools } from '../../test/stub/provider';
5151
import {
5252
HardwareDeviceNames,
5353
HardwareKeyringType,
54+
KEYRING_DEVICE_PROPERTY_MAP,
5455
} from '../../shared/constants/hardware-wallets';
5556
import { KeyringType } from '../../shared/constants/keyring';
5657
import { LOG_EVENT } from '../../shared/constants/logs';
@@ -1630,7 +1631,7 @@ describe('MetaMaskController', () => {
16301631
const result =
16311632
await metamaskController.getHardwareTypeForMetric('0x123');
16321633

1633-
expect(result).toBe(HardwareKeyringType[type]);
1634+
expect(result).toBe(KEYRING_DEVICE_PROPERTY_MAP[type]);
16341635
},
16351636
);
16361637
});

0 commit comments

Comments
 (0)