From eee06e0cc97333891a84aff22196849105846eb4 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Thu, 25 May 2017 13:42:53 +0200 Subject: Address feedback --- test/0x.js.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test') 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; -- cgit v1.2.3