From d23dbf53fd3689613f28d576d03ccfdce94b6646 Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Thu, 25 May 2017 11:00:20 +0200 Subject: [PATCH] Fix test that was passing an invalid address (now caught by our assertions), to instead pass a valid but unrelated address as the test name suggests --- test/0x.js.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/0x.js.ts b/test/0x.js.ts index d59df88946..71126c7da4 100644 --- a/test/0x.js.ts +++ b/test/0x.js.ts @@ -59,7 +59,8 @@ describe('ZeroEx library', () => { expect(isValid).to.be.false; }); it('should return false if the address doesn\'t pertain to the signature & data', () => { - const isValid = ZeroEx.isValidSignature(data, signature, '0xIamWrong'); + const validUnrelatedAddress = '0x8b0292B11a196601eD2ce54B665CaFEca0347D42'; + const isValid = ZeroEx.isValidSignature(data, signature, validUnrelatedAddress); expect(isValid).to.be.false; }); it('should return false if the signature doesn\'t pertain to the data & address', () => {