aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/util_test.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-06-02 07:14:49 +0800
committerDan Finlay <dan@danfinlay.com>2016-06-02 07:14:49 +0800
commitd0f8a14acec274e97d35d9f7a63605581ad21511 (patch)
tree9c77517a969784a720916e9e87eabdf34a5d4e33 /test/unit/util_test.js
parent921ced1630b0e63f067fb9170f499f0fbc304004 (diff)
downloadtangerine-wallet-browser-d0f8a14acec274e97d35d9f7a63605581ad21511.tar
tangerine-wallet-browser-d0f8a14acec274e97d35d9f7a63605581ad21511.tar.gz
tangerine-wallet-browser-d0f8a14acec274e97d35d9f7a63605581ad21511.tar.bz2
tangerine-wallet-browser-d0f8a14acec274e97d35d9f7a63605581ad21511.tar.lz
tangerine-wallet-browser-d0f8a14acec274e97d35d9f7a63605581ad21511.tar.xz
tangerine-wallet-browser-d0f8a14acec274e97d35d9f7a63605581ad21511.tar.zst
tangerine-wallet-browser-d0f8a14acec274e97d35d9f7a63605581ad21511.zip
Add test case for sample hashed address
Diffstat (limited to 'test/unit/util_test.js')
-rw-r--r--test/unit/util_test.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/unit/util_test.js b/test/unit/util_test.js
index f003395b3..6ad27ed81 100644
--- a/test/unit/util_test.js
+++ b/test/unit/util_test.js
@@ -77,6 +77,13 @@ describe('util', function() {
assert.ok(!result)
})
+ it('should recognize this sample hashed address', function() {
+ const address = '0x5Fda30Bb72B8Dfe20e48A00dFc108d0915BE9BbA'
+ const result = util.isValidAddress(address)
+ const hashed = ethUtil.toChecksumAddress(address)
+ assert.equal(hashed, address, 'example is hashed correctly')
+ assert.ok(result)
+ })
})
describe('numericBalance', function() {