mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Clean up tests
This commit is contained in:
parent
aa4746f4c7
commit
d4c0a4949b
@ -230,22 +230,22 @@ describe('util', function() {
|
||||
describe('#isHex', function(){
|
||||
it('should return true when given a hex string', function() {
|
||||
var result = util.isHex('c3ab8ff13720e8ad9047dd39466b3c8974e592c2fa383d4a3960714caef0c4f2')
|
||||
assert.equal(result, true)
|
||||
assert(result)
|
||||
})
|
||||
|
||||
it('should return false when given a non-hex string', function() {
|
||||
var result = util.isHex('c3ab8ff13720e8ad9047dd39466b3c8974e592c2fa383d4a3960714imnotreal')
|
||||
assert.equal(result, false)
|
||||
assert(!result)
|
||||
})
|
||||
|
||||
it('should return false when given a string containing a non letter/number character', function() {
|
||||
var result = util.isHex('c3ab8ff13720!8ad9047dd39466b3c%8974e592c2fa383d4a396071imnotreal')
|
||||
assert.equal(result, false)
|
||||
assert(!result)
|
||||
})
|
||||
|
||||
it('should return true when given a hex string with hex-prefix', function() {
|
||||
var result = util.isHex('0xc3ab8ff13720e8ad9047dd39466b3c8974e592c2fa383d4a3960714caef0c4f2')
|
||||
assert.equal(result, true)
|
||||
assert(result)
|
||||
})
|
||||
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user