aboutsummaryrefslogtreecommitdiffstats
path: root/packages/json-schemas/test/schema_test.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-12-18 22:35:23 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-12-19 19:10:43 +0800
commit1e4fdcf615502478cbec8711bf6710e093c0c279 (patch)
treec31e798244f261bba623235baaf2873d7df3daf6 /packages/json-schemas/test/schema_test.ts
parentc63f76dde7267c54328d2f12f401d94484e5a91a (diff)
downloaddexon-sol-tools-1e4fdcf615502478cbec8711bf6710e093c0c279.tar
dexon-sol-tools-1e4fdcf615502478cbec8711bf6710e093c0c279.tar.gz
dexon-sol-tools-1e4fdcf615502478cbec8711bf6710e093c0c279.tar.bz2
dexon-sol-tools-1e4fdcf615502478cbec8711bf6710e093c0c279.tar.lz
dexon-sol-tools-1e4fdcf615502478cbec8711bf6710e093c0c279.tar.xz
dexon-sol-tools-1e4fdcf615502478cbec8711bf6710e093c0c279.tar.zst
dexon-sol-tools-1e4fdcf615502478cbec8711bf6710e093c0c279.zip
Rename SubscriptionOpts to BlockRange
Diffstat (limited to 'packages/json-schemas/test/schema_test.ts')
-rw-r--r--packages/json-schemas/test/schema_test.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/json-schemas/test/schema_test.ts b/packages/json-schemas/test/schema_test.ts
index 067b02827..e729c1925 100644
--- a/packages/json-schemas/test/schema_test.ts
+++ b/packages/json-schemas/test/schema_test.ts
@@ -23,7 +23,7 @@ const {
signedOrderSchema,
signedOrdersSchema,
blockParamSchema,
- subscriptionOptsSchema,
+ blockRangeSchema,
tokenSchema,
jsNumber,
txDataSchema,
@@ -170,21 +170,21 @@ describe('Schema', () => {
validateAgainstSchema(testCases, blockParamSchema, shouldFail);
});
});
- describe('#subscriptionOptsSchema', () => {
+ describe('#blockRangeSchema', () => {
it('should validate valid subscription opts', () => {
const testCases = [
{fromBlock: 42, toBlock: 'latest'},
{fromBlock: 42},
{},
];
- validateAgainstSchema(testCases, subscriptionOptsSchema);
+ validateAgainstSchema(testCases, blockRangeSchema);
});
it('should fail for invalid subscription opts', () => {
const testCases = [
{fromBlock: '42'},
];
const shouldFail = true;
- validateAgainstSchema(testCases, subscriptionOptsSchema, shouldFail);
+ validateAgainstSchema(testCases, blockRangeSchema, shouldFail);
});
});
describe('#tokenSchema', () => {