diff options
author | brunobar79 <brunobar79@gmail.com> | 2018-07-17 00:55:13 +0800 |
---|---|---|
committer | brunobar79 <brunobar79@gmail.com> | 2018-07-17 00:55:13 +0800 |
commit | d05814a5ad375f21a0b3d72de1815764eb1da5a4 (patch) | |
tree | 50315015995fac6ab84f00e479d61710859ddb42 /ui/app/components/send_/send.utils.test.js | |
parent | 7f29b46d32b590ebc34c6f86360ef34e8bbb75fe (diff) | |
parent | db4469794e3e843f3cb08222d0a9b568c7816a85 (diff) | |
download | tangerine-wallet-browser-d05814a5ad375f21a0b3d72de1815764eb1da5a4.tar.gz tangerine-wallet-browser-d05814a5ad375f21a0b3d72de1815764eb1da5a4.tar.zst tangerine-wallet-browser-d05814a5ad375f21a0b3d72de1815764eb1da5a4.zip |
Merge branch 'develop' into initial-trezor-support
Diffstat (limited to 'ui/app/components/send_/send.utils.test.js')
-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') - }) - }) -}) |