Merge pull request #6184 from chikeichan/6132
turn camcelCase method name to space separatedfeature/default_network_editable
commit
1eebe54c64
@ -0,0 +1,14 @@ |
||||
import assert from 'assert' |
||||
import { getMethodName } from '../confirm-transaction-base.component' |
||||
|
||||
describe('ConfirmTransactionBase Component', () => { |
||||
describe('getMethodName', () => { |
||||
it('should get correct method names', () => { |
||||
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') |
||||
}) |
||||
}) |
||||
}) |
Loading…
Reference in new issue