From 1b828b37aa8e3cc762926c19d9d4e3940c4e6618 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Fri, 9 Jun 2017 19:38:34 +0200 Subject: Fix tests --- test/schema_test.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test') diff --git a/test/schema_test.ts b/test/schema_test.ts index d35ed4516..8d786fb73 100644 --- a/test/schema_test.ts +++ b/test/schema_test.ts @@ -38,8 +38,7 @@ describe('Schema', () => { '.3': '0.3', }; _.forEach(testCases, (serialized: string, input: string) => { - expect(SchemaValidator.convertToJSONSchemaCompatibleObject(new BigNumber(input))) - .to.be.equal(serialized); + expect(JSON.parse(JSON.stringify(new BigNumber(input)))).to.be.equal(serialized); }); }); }); -- cgit