aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-10 01:38:34 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-10 01:38:34 +0800
commit1b828b37aa8e3cc762926c19d9d4e3940c4e6618 (patch)
tree56e412a784f4b6f56da3f04ff268ac1bfdd4afe6 /test
parent4e9a83132cdec4a6278052919310118c2abbc0ca (diff)
downloaddexon-0x-contracts-1b828b37aa8e3cc762926c19d9d4e3940c4e6618.tar
dexon-0x-contracts-1b828b37aa8e3cc762926c19d9d4e3940c4e6618.tar.gz
dexon-0x-contracts-1b828b37aa8e3cc762926c19d9d4e3940c4e6618.tar.bz2
dexon-0x-contracts-1b828b37aa8e3cc762926c19d9d4e3940c4e6618.tar.lz
dexon-0x-contracts-1b828b37aa8e3cc762926c19d9d4e3940c4e6618.tar.xz
dexon-0x-contracts-1b828b37aa8e3cc762926c19d9d4e3940c4e6618.tar.zst
dexon-0x-contracts-1b828b37aa8e3cc762926c19d9d4e3940c4e6618.zip
Fix tests
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 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);
});
});
});