-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6184 from chikeichan/6132
turn camcelCase method name to space separated
- Loading branch information
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...omponents/pages/confirm-transaction-base/tests/confirm-transaction-base.component.test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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') | ||
}) | ||
}) | ||
}) |