diff --git a/test/runtime/compiler-ajv/array.ts b/test/runtime/compiler-ajv/array.ts index 589bc03ac..18a2d23d5 100644 --- a/test/runtime/compiler-ajv/array.ts +++ b/test/runtime/compiler-ajv/array.ts @@ -151,7 +151,7 @@ describe('compiler-ajv/Array', () => { it('Should correctly handle undefined array properties', () => { const Answer = Type.Object({ text: Type.String(), - isCorrect: Type.Boolean(), + isCorrect: Type.Boolean() }) const Question = Type.Object({ text: Type.String(), @@ -160,27 +160,15 @@ describe('compiler-ajv/Array', () => { maxContains: 1, contains: Type.Object({ text: Type.String(), - isCorrect: Type.Literal(true), - }), - }), + isCorrect: Type.Literal(true) + }) + }) }) Fail(Question, { text: 'A' }) Fail(Question, { text: 'A', options: [] }) Ok(Question, { text: 'A', options: [{ text: 'A', isCorrect: true }] }) - Ok(Question, { - text: 'A', - options: [ - { text: 'A', isCorrect: true }, - { text: 'B', isCorrect: false }, - ], - }) + Ok(Question, { text: 'A', options: [{ text: 'A', isCorrect: true }, { text: 'B', isCorrect: false }] }) Fail(Question, { text: 'A', options: [{ text: 'A', isCorrect: false }] }) - Fail(Question, { - text: 'A', - options: [ - { text: 'A', isCorrect: true }, - { text: 'B', isCorrect: true }, - ], - }) + Fail(Question, { text: 'A', options: [{ text: 'A', isCorrect: true }, { text: 'B', isCorrect: true }] }) }) }) diff --git a/test/runtime/compiler/array.ts b/test/runtime/compiler/array.ts index a730d1340..70af4c500 100644 --- a/test/runtime/compiler/array.ts +++ b/test/runtime/compiler/array.ts @@ -148,7 +148,6 @@ describe('compiler/Array', () => { // ---------------------------------------------------------------- // Issue: https://github.com/sinclairzx81/typebox/discussions/607 // ---------------------------------------------------------------- - // prettier-ignore it('Should correctly handle undefined array properties', () => { const Answer = Type.Object({ text: Type.String(), diff --git a/test/runtime/value/check/array.ts b/test/runtime/value/check/array.ts index 53b44a9c3..9ad1be58c 100644 --- a/test/runtime/value/check/array.ts +++ b/test/runtime/value/check/array.ts @@ -113,7 +113,6 @@ describe('value/check/Array', () => { // ---------------------------------------------------------------- // Issue: https://github.com/sinclairzx81/typebox/discussions/607 // ---------------------------------------------------------------- - // prettier-ignore it('Should correctly handle undefined array properties', () => { const Answer = Type.Object({ text: Type.String(),