aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-02-17 15:36:58 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-02-22 14:53:02 -0500
commite3cfb3fbc709285e292fe5e8bb68ca8903e6c86b (patch)
tree3de73cfdc044f10084872794c2541873813bbab4
parent9dd779836c34c6877c9736d937c3c4109b173b18 (diff)
Fix test-schema.js
-rw-r--r--test/test-schema.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test-schema.js b/test/test-schema.js
index ca4f56dd..8ca63167 100644
--- a/test/test-schema.js
+++ b/test/test-schema.js
@@ -30,7 +30,7 @@ function testValidate1() {
]
};
- const schemaValidate = (value, schema) => {
+ const schemaValidate = (value) => {
try {
JsonSchema.validate(value, schema);
return true;
@@ -48,7 +48,7 @@ function testValidate1() {
) &&
(
(
- (value % 3 )=== 0 ||
+ (value % 3) === 0 ||
(value % 5) === 0
) &&
(value % 15) !== 0
@@ -81,7 +81,7 @@ function testGetValidValueOrDefault1() {
const testData = [
[
- void(0),
+ void 0,
{test: 'default'}
],
[
@@ -210,7 +210,7 @@ function testGetValidValueOrDefault3() {
{test: 'value', test2: 2, test3: 10}
],
[
- {test: 'value', test2: 2, test3: void(0)},
+ {test: 'value', test2: 2, test3: void 0},
{test: 'value', test2: 2, test3: 10}
]
];