mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-02 22:24:27 +01:00
7365f87f9e
16 lines
582 B
JavaScript
16 lines
582 B
JavaScript
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(
|
|||
'eth To Token Swap Input',
|
|||
);
|
|||
});
|
|||
});
|
|||
});
|