From 122c5148d22af95a6c410d143223f3e9df48d256 Mon Sep 17 00:00:00 2001 From: Geoff Date: Mon, 19 Aug 2024 23:23:52 -0400 Subject: [PATCH] Manual type fixes --- test/validation/dynamic/valid-reference.test.ts | 1 - test/validation/empty/valid-array.test.ts | 2 +- test/validation/object/invalid-array.test.ts | 2 +- test/validation/record/invalid-array.test.ts | 2 +- test/validation/size/invalid-array.test.ts | 2 +- test/validation/type/invalid-array.test.ts | 2 +- 6 files changed, 5 insertions(+), 6 deletions(-) diff --git a/test/validation/dynamic/valid-reference.test.ts b/test/validation/dynamic/valid-reference.test.ts index 26995883..f1d52f48 100644 --- a/test/validation/dynamic/valid-reference.test.ts +++ b/test/validation/dynamic/valid-reference.test.ts @@ -1,4 +1,3 @@ -import { assert } from '../../../src' import { expect, test } from 'vitest' import { assert, type, dynamic, literal, string, number } from '../../../src' diff --git a/test/validation/empty/valid-array.test.ts b/test/validation/empty/valid-array.test.ts index f09c3786..e5ab8af9 100644 --- a/test/validation/empty/valid-array.test.ts +++ b/test/validation/empty/valid-array.test.ts @@ -3,7 +3,7 @@ import { expect, test } from 'vitest' import { number, array, empty } from '../../../src' test('Valid empty array', () => { - const data = [] + const data: any[] = [] assert(data, empty(array(number()))) expect(data).toStrictEqual([]) }) diff --git a/test/validation/object/invalid-array.test.ts b/test/validation/object/invalid-array.test.ts index 901bfd30..1fa004e8 100644 --- a/test/validation/object/invalid-array.test.ts +++ b/test/validation/object/invalid-array.test.ts @@ -3,7 +3,7 @@ import { expect, test } from 'vitest' import { object } from '../../../src' test('Invalid object array', () => { - const data = [] + const data: any[] = [] const [err, res] = validate(data, object()) expect(res).toBeUndefined() diff --git a/test/validation/record/invalid-array.test.ts b/test/validation/record/invalid-array.test.ts index 62e56049..6629c09f 100644 --- a/test/validation/record/invalid-array.test.ts +++ b/test/validation/record/invalid-array.test.ts @@ -3,7 +3,7 @@ import { expect, test } from 'vitest' import { record, string, number } from '../../../src' test('Invalid record array', () => { - const data = [] + const data: any[] = [] const [err, res] = validate(data, record(string(), number())) expect(res).toBeUndefined() diff --git a/test/validation/size/invalid-array.test.ts b/test/validation/size/invalid-array.test.ts index 0ef60ccf..f6c7f4f1 100644 --- a/test/validation/size/invalid-array.test.ts +++ b/test/validation/size/invalid-array.test.ts @@ -3,7 +3,7 @@ import { expect, test } from 'vitest' import { array, size, number } from '../../../src' test('Invalid size array', () => { - const data = [] + const data: any[] = [] const [err, res] = validate(data, size(array(number()), 1, 5)) expect(res).toBeUndefined() diff --git a/test/validation/type/invalid-array.test.ts b/test/validation/type/invalid-array.test.ts index f44f5fbd..79958b80 100644 --- a/test/validation/type/invalid-array.test.ts +++ b/test/validation/type/invalid-array.test.ts @@ -3,7 +3,7 @@ import { expect, test } from 'vitest' import { type } from '../../../src' test('Invalid type array', () => { - const data = [] + const data: any[] = [] const [err, res] = validate(data, type({})) expect(res).toBeUndefined()