aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/send_/send.utils.test.js
diff options
context:
space:
mode:
authorWhymarrh Whitby <whymarrh.whitby@gmail.com>2018-07-17 00:05:05 +0800
committerGitHub <noreply@github.com>2018-07-17 00:05:05 +0800
commitdb4469794e3e843f3cb08222d0a9b568c7816a85 (patch)
tree58602319cc267170b1038102817528df668e516f /ui/app/components/send_/send.utils.test.js
parent117d43be1f9aa701a8a02570ebbc71ecf1b9da94 (diff)
parent5c3efe8bc47a9f8e7a7e0952589c1a2f42ec4eca (diff)
downloadtangerine-wallet-browser-db4469794e3e843f3cb08222d0a9b568c7816a85.tar.gz
tangerine-wallet-browser-db4469794e3e843f3cb08222d0a9b568c7816a85.tar.zst
tangerine-wallet-browser-db4469794e3e843f3cb08222d0a9b568c7816a85.zip
Merge pull request #4621 from MetaMask/one-send-directory
Remove 'send_/' directory; revert to just having send
Diffstat (limited to 'ui/app/components/send_/send.utils.test.js')
-rw-r--r--ui/app/components/send_/send.utils.test.js30
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')
- })
- })
-})