diff options
Diffstat (limited to 'test/schema_test.ts')
-rw-r--r-- | test/schema_test.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/schema_test.ts b/test/schema_test.ts index 376ac5d6f..b251a68f9 100644 --- a/test/schema_test.ts +++ b/test/schema_test.ts @@ -286,8 +286,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); }); }); }); |