diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-08-02 04:55:16 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-08-02 04:55:16 +0800 |
commit | f8a252d1427a6dddffa3cdb177ebc6ffd9cb774c (patch) | |
tree | 20abc46aad7b4095dcaed3e4c97d00323734fdaa | |
parent | 962d6e71b6cbe7f4e267bfb16d3c9fb4de511a22 (diff) | |
download | dexon-0x-contracts-f8a252d1427a6dddffa3cdb177ebc6ffd9cb774c.tar.gz dexon-0x-contracts-f8a252d1427a6dddffa3cdb177ebc6ffd9cb774c.tar.zst dexon-0x-contracts-f8a252d1427a6dddffa3cdb177ebc6ffd9cb774c.zip |
All schema tests padding
-rw-r--r-- | packages/json-schemas/test/schema_test.ts | 23 |
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); |