diff options
author | Dan <danjm.com@gmail.com> | 2018-07-03 08:31:57 +0800 |
---|---|---|
committer | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-07-16 23:28:32 +0800 |
commit | 2e0cbf210e4c7096f1b7843ac9b31dd92b312355 (patch) | |
tree | 480f5c1e310a368ffaf891f6efc69ba4a122e59e /ui/app/components/send_ | |
parent | b3d78ed8a1fbea059344b04416fb21bdb1b73f86 (diff) | |
download | tangerine-wallet-browser-2e0cbf210e4c7096f1b7843ac9b31dd92b312355.tar tangerine-wallet-browser-2e0cbf210e4c7096f1b7843ac9b31dd92b312355.tar.gz tangerine-wallet-browser-2e0cbf210e4c7096f1b7843ac9b31dd92b312355.tar.bz2 tangerine-wallet-browser-2e0cbf210e4c7096f1b7843ac9b31dd92b312355.tar.lz tangerine-wallet-browser-2e0cbf210e4c7096f1b7843ac9b31dd92b312355.tar.xz tangerine-wallet-browser-2e0cbf210e4c7096f1b7843ac9b31dd92b312355.tar.zst tangerine-wallet-browser-2e0cbf210e4c7096f1b7843ac9b31dd92b312355.zip |
Fix lint warnings in the send/ directory.
Diffstat (limited to 'ui/app/components/send_')
-rw-r--r-- | ui/app/components/send_/send.utils.test.js | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/ui/app/components/send_/send.utils.test.js b/ui/app/components/send_/send.utils.test.js deleted file mode 100644 index 36f3a5c10..000000000 --- a/ui/app/components/send_/send.utils.test.js +++ /dev/null @@ -1,30 +0,0 @@ -import assert from 'assert' -import { removeLeadingZeroes } from './send.utils' - - -describe('send utils', () => { - describe('removeLeadingZeroes()', () => { - it('should remove leading zeroes from int when user types', () => { - assert.equal(removeLeadingZeroes('0'), '0') - assert.equal(removeLeadingZeroes('1'), '1') - assert.equal(removeLeadingZeroes('00'), '0') - assert.equal(removeLeadingZeroes('01'), '1') - }) - - it('should remove leading zeroes from int when user copy/paste', () => { - assert.equal(removeLeadingZeroes('001'), '1') - }) - - it('should remove leading zeroes from float when user types', () => { - assert.equal(removeLeadingZeroes('0.'), '0.') - assert.equal(removeLeadingZeroes('0.0'), '0.0') - assert.equal(removeLeadingZeroes('0.00'), '0.00') - assert.equal(removeLeadingZeroes('0.001'), '0.001') - assert.equal(removeLeadingZeroes('0.10'), '0.10') - }) - - it('should remove leading zeroes from float when user copy/paste', () => { - assert.equal(removeLeadingZeroes('00.1'), '0.1') - }) - }) -}) |