2021-03-16 22:00:08 +01:00
|
|
|
import { getMethodName } from './confirm-transaction-base.component';
|
2019-02-19 06:36:12 +01:00
|
|
|
|
2021-04-15 20:01:46 +02:00
|
|
|
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',
|
2021-02-04 19:15:23 +01:00
|
|
|
);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|