diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-07-07 08:58:46 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-07-07 08:58:46 +0800 |
commit | 7058dc4ee3d00f4d4e407c656cf671b2d4fd62f2 (patch) | |
tree | 5364558379541311895ddd20c2675739541da5e4 /test | |
parent | 2c89cd722ed66f9f8522913b1a5bbc55ce5a7ca6 (diff) | |
download | tangerine-wallet-browser-7058dc4ee3d00f4d4e407c656cf671b2d4fd62f2.tar tangerine-wallet-browser-7058dc4ee3d00f4d4e407c656cf671b2d4fd62f2.tar.gz tangerine-wallet-browser-7058dc4ee3d00f4d4e407c656cf671b2d4fd62f2.tar.bz2 tangerine-wallet-browser-7058dc4ee3d00f4d4e407c656cf671b2d4fd62f2.tar.lz tangerine-wallet-browser-7058dc4ee3d00f4d4e407c656cf671b2d4fd62f2.tar.xz tangerine-wallet-browser-7058dc4ee3d00f4d4e407c656cf671b2d4fd62f2.tar.zst tangerine-wallet-browser-7058dc4ee3d00f4d4e407c656cf671b2d4fd62f2.zip |
Began reworking tx conf view
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/util_test.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/util_test.js b/test/unit/util_test.js index c114e3bcf..dbc9816f5 100644 --- a/test/unit/util_test.js +++ b/test/unit/util_test.js @@ -52,6 +52,12 @@ describe('util', function() { var result = util.addressSummary(address) assert.equal(result, '0xFDEa65C8...b825') }) + + it('should accept arguments for firstseg, lastseg, and keepPrefix', function() { + var address = '0xfdea65c8e26263f6d9a1b5de9555d2931a33b825' + var result = util.addressSummary(address, 4, 4, false) + assert.equal(result, 'FDEa...b825') + }) }) describe('isValidAddress', function() { |