diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-05-25 19:42:53 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-05-25 19:42:53 +0800 |
commit | eee06e0cc97333891a84aff22196849105846eb4 (patch) | |
tree | 751a4e528301544e3a8b4059badecb78ad2bff76 /test/0x.js.ts | |
parent | 74a80c28d348da6e4050e43e713113c4c0df87df (diff) | |
download | dexon-sol-tools-eee06e0cc97333891a84aff22196849105846eb4.tar dexon-sol-tools-eee06e0cc97333891a84aff22196849105846eb4.tar.gz dexon-sol-tools-eee06e0cc97333891a84aff22196849105846eb4.tar.bz2 dexon-sol-tools-eee06e0cc97333891a84aff22196849105846eb4.tar.lz dexon-sol-tools-eee06e0cc97333891a84aff22196849105846eb4.tar.xz dexon-sol-tools-eee06e0cc97333891a84aff22196849105846eb4.tar.zst dexon-sol-tools-eee06e0cc97333891a84aff22196849105846eb4.zip |
Address feedback
Diffstat (limited to 'test/0x.js.ts')
-rw-r--r-- | test/0x.js.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/0x.js.ts b/test/0x.js.ts index 2ac6a2bea..38c36d248 100644 --- a/test/0x.js.ts +++ b/test/0x.js.ts @@ -52,7 +52,7 @@ describe('ZeroEx library', () => { }); }); it('should return false if the data doesn\'t pertain to the signature & address', () => { - const isValid = ZeroEx.isValidSignature('0x00', signature, address); + const isValid = ZeroEx.isValidSignature('0x0', signature, address); expect(isValid).to.be.false; }); it('should return false if the address doesn\'t pertain to the signature & data', () => { @@ -83,6 +83,10 @@ describe('ZeroEx library', () => { }); }); describe('#isValidOrderHash', () => { + it('returns false if the value is not a hex string', () => { + const isValid = ZeroEx.isValidOrderHash('not a hex'); + expect(isValid).to.be.false; + }); it('returns false if the length is wrong', () => { const isValid = ZeroEx.isValidOrderHash('0xdeadbeef'); expect(isValid).to.be.false; |