diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-08-23 06:03:36 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-08-23 06:03:36 +0800 |
commit | 6e1000f361afcf259beb587d777f3025fcde7667 (patch) | |
tree | 758ddcf89896b8c7976347e9e2c97226378e05a6 /test/unit/util_test.js | |
parent | 270dbacbc472dae660fe8b143df9c64b7f8279cf (diff) | |
parent | 3756384da6cb7d1566271cb99ec561d3b051a4ac (diff) | |
download | tangerine-wallet-browser-6e1000f361afcf259beb587d777f3025fcde7667.tar.gz tangerine-wallet-browser-6e1000f361afcf259beb587d777f3025fcde7667.tar.zst tangerine-wallet-browser-6e1000f361afcf259beb587d777f3025fcde7667.zip |
Merge branch 'master' into PopupNotifications
Diffstat (limited to 'test/unit/util_test.js')
-rw-r--r-- | test/unit/util_test.js | 7 |
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() { |