aboutsummaryrefslogtreecommitdiffstats
path: root/packages/json-schemas/test/schema_test.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-05-24 08:36:34 +0800
committerFabio Berger <me@fabioberger.com>2018-05-24 08:36:34 +0800
commit3ec05bb5d894d6c1f430e8fdeec2821f08328970 (patch)
tree093513ca0ea934e45ad34f91734ae3474235eac7 /packages/json-schemas/test/schema_test.ts
parent59890f2c832a99372a3cdc423a23a4769f214fdc (diff)
downloaddexon-0x-contracts-3ec05bb5d894d6c1f430e8fdeec2821f08328970.tar.gz
dexon-0x-contracts-3ec05bb5d894d6c1f430e8fdeec2821f08328970.tar.zst
dexon-0x-contracts-3ec05bb5d894d6c1f430e8fdeec2821f08328970.zip
Force hex to have at least two hex values after the prefix, but it could be two zeros
Diffstat (limited to 'packages/json-schemas/test/schema_test.ts')
-rw-r--r--packages/json-schemas/test/schema_test.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/json-schemas/test/schema_test.ts b/packages/json-schemas/test/schema_test.ts
index a7d510122..379f92442 100644
--- a/packages/json-schemas/test/schema_test.ts
+++ b/packages/json-schemas/test/schema_test.ts
@@ -90,7 +90,7 @@ describe('Schema', () => {
validateAgainstSchema(testCases, hexSchema);
});
it('should fail for invalid hex string', () => {
- const testCases = ['0x', '0', '0x00', '0xzzzzzzB11a196601eD2ce54B665CaFEca0347D42'];
+ const testCases = ['0x', '0', '0xzzzzzzB11a196601eD2ce54B665CaFEca0347D42'];
const shouldFail = true;
validateAgainstSchema(testCases, hexSchema, shouldFail);
});