aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/json-schemas/test/schema_test.ts23
1 files changed, 17 insertions, 6 deletions
diff --git a/packages/json-schemas/test/schema_test.ts b/packages/json-schemas/test/schema_test.ts
index 0b520f6e3..e1538ba56 100644
--- a/packages/json-schemas/test/schema_test.ts
+++ b/packages/json-schemas/test/schema_test.ts
@@ -753,8 +753,14 @@ describe('Schema', () => {
{
type: 'update',
channel: 'orders',
- requestId: 2,
- payload: signedOrder,
+ requestId: 'randomId',
+ payload: [relayerApiOrder],
+ },
+ {
+ type: 'update',
+ channel: 'orders',
+ requestId: 'randomId',
+ payload: [],
},
];
validateAgainstSchema(testCases, relayerApiOrdersChannelUpdateSchema);
@@ -764,21 +770,26 @@ describe('Schema', () => {
{
type: 'foo',
channel: 'orders',
- requestId: 2,
- payload: signedOrder,
+ requestId: 'randomId',
},
{
type: 'update',
channel: 'bar',
requestId: 2,
- payload: signedOrder,
+ payload: [relayerApiOrder],
},
{
type: 'update',
channel: 'orders',
- requestId: 2,
+ requestId: 'randomId',
payload: {},
},
+ {
+ type: 'update',
+ channel: 'orders',
+ requestId: 'randomId',
+ payload: relayerApiErrorResponseSchema,
+ },
];
const shouldFail = true;
validateAgainstSchema(testCases, relayerApiOrdersChannelUpdateSchema, shouldFail);