aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-06-10 18:23:34 +0800
committerGitHub <noreply@github.com>2017-06-10 18:23:34 +0800
commitb739ae24944876c28a2ff474993e72a7178b3d1b (patch)
tree5e176f2208a97471d83ad0e1ffbc9980e25cdd24 /test
parent1460966d8f03e5ec0012b21d4c4614c4c3ec44bc (diff)
parent823134b3bf24c93bd470a1de65bd39adaf554f73 (diff)
downloaddexon-sol-tools-b739ae24944876c28a2ff474993e72a7178b3d1b.tar
dexon-sol-tools-b739ae24944876c28a2ff474993e72a7178b3d1b.tar.gz
dexon-sol-tools-b739ae24944876c28a2ff474993e72a7178b3d1b.tar.bz2
dexon-sol-tools-b739ae24944876c28a2ff474993e72a7178b3d1b.tar.lz
dexon-sol-tools-b739ae24944876c28a2ff474993e72a7178b3d1b.tar.xz
dexon-sol-tools-b739ae24944876c28a2ff474993e72a7178b3d1b.tar.zst
dexon-sol-tools-b739ae24944876c28a2ff474993e72a7178b3d1b.zip
Merge pull request #52 from 0xProject/json-schema
Convert to JSON schema compatible object by default
Diffstat (limited to 'test')
-rw-r--r--test/schema_test.ts3
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);
});
});
});