aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorFrankie <frankie.pangilinan@consensys.net>2016-10-21 03:26:35 +0800
committerFrankie <frankie.pangilinan@consensys.net>2016-10-21 03:26:35 +0800
commitd4c0a4949bd8331e965ad17c5ac04af7b6fb90ea (patch)
tree5d78c078217087666bddcbe74d91d8f43046f0da /test/unit
parentaa4746f4c723857710d61482a73960d863a8a098 (diff)
downloadtangerine-wallet-browser-d4c0a4949bd8331e965ad17c5ac04af7b6fb90ea.tar
tangerine-wallet-browser-d4c0a4949bd8331e965ad17c5ac04af7b6fb90ea.tar.gz
tangerine-wallet-browser-d4c0a4949bd8331e965ad17c5ac04af7b6fb90ea.tar.bz2
tangerine-wallet-browser-d4c0a4949bd8331e965ad17c5ac04af7b6fb90ea.tar.lz
tangerine-wallet-browser-d4c0a4949bd8331e965ad17c5ac04af7b6fb90ea.tar.xz
tangerine-wallet-browser-d4c0a4949bd8331e965ad17c5ac04af7b6fb90ea.tar.zst
tangerine-wallet-browser-d4c0a4949bd8331e965ad17c5ac04af7b6fb90ea.zip
Clean up tests
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/util_test.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/unit/util_test.js b/test/unit/util_test.js
index eec3183fe..00528b905 100644
--- a/test/unit/util_test.js
+++ b/test/unit/util_test.js
@@ -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)
})
})