aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/unit/util_test.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/util_test.js b/test/unit/util_test.js
index e2390c8d4..28f76fcf1 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() {