From d0f8a14acec274e97d35d9f7a63605581ad21511 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Wed, 1 Jun 2016 16:14:49 -0700 Subject: [PATCH] Add test case for sample hashed address --- test/unit/util_test.js | 7 +++++++ 1 file changed, 7 insertions(+) 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() {