From 00b64014525b4aabd82a61c1330a3f126554016a Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Thu, 25 May 2017 13:47:04 +0200 Subject: Fix braces --- src/ts/0x.js.ts | 1 + test/0x.js.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/ts/0x.js.ts b/src/ts/0x.js.ts index cc2adca33..5e500b481 100644 --- a/src/ts/0x.js.ts +++ b/src/ts/0x.js.ts @@ -56,6 +56,7 @@ export class ZeroEx { assert.isString('orderHash', orderHash); const isValid = /^0x[0-9A-F]{66}$/i.test(orderHash); return isValid; + } /* * A unit amount is defined as the amount of a token above the specified decimal places (integer part). * E.g: If a currency has 18 decimal places, 1e18 or one quintillion of the currency is equivalent diff --git a/test/0x.js.ts b/test/0x.js.ts index 01a5554ff..a913fd6b5 100644 --- a/test/0x.js.ts +++ b/test/0x.js.ts @@ -99,6 +99,8 @@ describe('ZeroEx library', () => { it('returns true if order hash is correct', () => { const isValid = ZeroEx.isValidOrderHash('0x' + Array(65).join('0')); expect(isValid).to.be.true; + }); + }); describe('#toUnitAmount', () => { it('Should return the expected unit amount for the decimals passed in', () => { const baseUnitAmount = new BigNumber(1000000000); -- cgit v1.2.3