1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-05 15:35:46 +01:00
metamask-extension/ui/pages/confirm-transaction-base/confirm-transaction-base.component.test.js

16 lines
582 B
JavaScript
Raw Normal View History

import { getMethodName } from './confirm-transaction-base.component';
describe('ConfirmTransactionBase Component', () => {
describe('getMethodName', () => {
it('should get correct method names', () => {
expect(getMethodName(undefined)).toStrictEqual('');
expect(getMethodName({})).toStrictEqual('');
expect(getMethodName('confirm')).toStrictEqual('confirm');
expect(getMethodName('balanceOf')).toStrictEqual('balance Of');
expect(getMethodName('ethToTokenSwapInput')).toStrictEqual(
2020-11-03 00:41:28 +01:00
'eth To Token Swap Input',
);
});
});
});