1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-27 12:56:01 +01:00
metamask-extension/ui/app/pages/confirm-transaction-base/tests/confirm-transaction-base.component.test.js

15 lines
563 B
JavaScript
Raw Normal View History

import assert from 'assert'
import { getMethodName } from '../confirm-transaction-base.component'
describe('ConfirmTransactionBase Component', function () {
describe('getMethodName', function () {
it('should get correct method names', function () {
assert.equal(getMethodName(undefined), '')
assert.equal(getMethodName({}), '')
assert.equal(getMethodName('confirm'), 'confirm')
assert.equal(getMethodName('balanceOf'), 'balance Of')
assert.equal(getMethodName('ethToTokenSwapInput'), 'eth To Token Swap Input')
})
})
})