Skip to content

Commit 13445f7

Browse files
authored
fix ajv strict warnings in if/else-tests (#542)
1 parent 470e7e9 commit 13445f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/if-then-else.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -391,8 +391,8 @@ t.test('if/else with const integers', (t) => {
391391
t.plan(2)
392392

393393
const schema = {
394-
type: 'integer',
395-
if: { minimum: 42 },
394+
type: 'number',
395+
if: { type: 'number', minimum: 42 },
396396
then: { const: 66 },
397397
else: { const: 33 }
398398
}
@@ -408,7 +408,7 @@ t.test('if/else with array', (t) => {
408408

409409
const schema = {
410410
type: 'array',
411-
if: { maxItems: 1 },
411+
if: { type: 'array', maxItems: 1 },
412412
then: { items: { type: 'string' } },
413413
else: { items: { type: 'number' } }
414414
}

0 commit comments

Comments
 (0)