diff options
Diffstat (limited to 'test')
-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 514a2a432..41355686e 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() { @@ -142,7 +148,6 @@ describe('util', function() { it('when given nothing', function() { var result = util.formatBalance() - assert.equal(result.formatted, 'None', 'should return "None"') }) it('should display specified decimal points', function() { |