mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +01:00
Add test case for sample hashed address
This commit is contained in:
parent
921ced1630
commit
d0f8a14ace
@ -77,6 +77,13 @@ describe('util', function() {
|
|||||||
assert.ok(!result)
|
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() {
|
describe('numericBalance', function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user