aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-08-23 02:59:08 +0800
committerDan Finlay <dan@danfinlay.com>2016-08-23 02:59:08 +0800
commit3d451ddf3e59e8d4ac610b7e6a01a59beed4f944 (patch)
tree93193c3014065d00fc14d2efcdca8a11c63e2e4a /test
parent8592ffd85582612ae18b5f4e5ed6749401f86f3b (diff)
parent3756384da6cb7d1566271cb99ec561d3b051a4ac (diff)
downloadtangerine-wallet-browser-3d451ddf3e59e8d4ac610b7e6a01a59beed4f944.tar
tangerine-wallet-browser-3d451ddf3e59e8d4ac610b7e6a01a59beed4f944.tar.gz
tangerine-wallet-browser-3d451ddf3e59e8d4ac610b7e6a01a59beed4f944.tar.bz2
tangerine-wallet-browser-3d451ddf3e59e8d4ac610b7e6a01a59beed4f944.tar.lz
tangerine-wallet-browser-3d451ddf3e59e8d4ac610b7e6a01a59beed4f944.tar.xz
tangerine-wallet-browser-3d451ddf3e59e8d4ac610b7e6a01a59beed4f944.tar.zst
tangerine-wallet-browser-3d451ddf3e59e8d4ac610b7e6a01a59beed4f944.zip
Merge branch 'master' into i390-TransactionLimit
Diffstat (limited to 'test')
-rw-r--r--test/unit/util_test.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/unit/util_test.js b/test/unit/util_test.js
index 9a3963ac1..45e545e8e 100644
--- a/test/unit/util_test.js
+++ b/test/unit/util_test.js
@@ -156,7 +156,12 @@ describe('util', function() {
var result = util.formatBalance(input)
assert.equal(result, '0.00032 ETH')
})
-
+ it('should not parse the balance and return value with 2 decimal points with ETH at the end', function() {
+ var value = '1.2456789'
+ var needsParse = false
+ var result = util.formatBalance(value, 2, needsParse)
+ assert.equal(result, '1.24 ETH')
+ })
})
describe('normalizing values', function() {