mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-24 11:01:41 +01:00
4f3fc95d50
* Use @metamask/eslint-config@1.1.0 * Use eslint-plugin-mocha@6.2.2 * Mark root ESLint config as root * Update Mocha ESLint rules with shared ESLint config
15 lines
563 B
JavaScript
15 lines
563 B
JavaScript
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')
|
|
})
|
|
})
|
|
})
|