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 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); }); }); }); |