aboutsummaryrefslogtreecommitdiffstats
path: root/packages/json-schemas/test
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-08-09 02:57:16 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-08-09 02:57:16 +0800
commitc9e1b7c5dc4eebf447fdc97568f08db0e2546904 (patch)
treef0e6d8c4fa83b71789f4d31e67a25f423da81831 /packages/json-schemas/test
parent853b5aa38b3d52ed8bab69e2bcd7d79a0cefcfd0 (diff)
downloaddexon-sol-tools-c9e1b7c5dc4eebf447fdc97568f08db0e2546904.tar
dexon-sol-tools-c9e1b7c5dc4eebf447fdc97568f08db0e2546904.tar.gz
dexon-sol-tools-c9e1b7c5dc4eebf447fdc97568f08db0e2546904.tar.bz2
dexon-sol-tools-c9e1b7c5dc4eebf447fdc97568f08db0e2546904.tar.lz
dexon-sol-tools-c9e1b7c5dc4eebf447fdc97568f08db0e2546904.tar.xz
dexon-sol-tools-c9e1b7c5dc4eebf447fdc97568f08db0e2546904.tar.zst
dexon-sol-tools-c9e1b7c5dc4eebf447fdc97568f08db0e2546904.zip
Change remainingFillableAmount to metaData
Diffstat (limited to 'packages/json-schemas/test')
-rw-r--r--packages/json-schemas/test/schema_test.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/json-schemas/test/schema_test.ts b/packages/json-schemas/test/schema_test.ts
index 01fa53045..1f59f4da2 100644
--- a/packages/json-schemas/test/schema_test.ts
+++ b/packages/json-schemas/test/schema_test.ts
@@ -214,7 +214,9 @@ describe('Schema', () => {
};
const relayerApiOrder = {
order,
- remainingFillableAmount: '50000000000000',
+ metaData: {
+ someMetaData: 5,
+ },
};
const relayerApiOrdersResponse = {
...paginatedResponse,
@@ -353,7 +355,7 @@ describe('Schema', () => {
validateAgainstSchema(testCases, relayerApiOrderSchema);
});
it('should fail for invalid relayer api orders', () => {
- const testCases = [{}, order, { order }, { order, remainingFillableAmount: 5 }];
+ const testCases = [{}, order, { order }, { order, metaData: 5 }];
const shouldFail = true;
validateAgainstSchema(testCases, relayerApiOrderSchema, shouldFail);
});