Fix tests

This commit is contained in:
Leonid Logvinov
2017-06-09 19:38:34 +02:00
parent 4e9a83132c
commit 1b828b37aa
2 changed files with 2 additions and 4 deletions

View File

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