From 99bb9f700b82caeb137735c7d33bb30790ad8cad Mon Sep 17 00:00:00 2001 From: Pascal Perrenoud Date: Mon, 9 Jun 2025 00:06:13 +0200 Subject: [PATCH] Fix test --- test/read_type.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/read_type.test.ts b/test/read_type.test.ts index f82307e..c614fcd 100644 --- a/test/read_type.test.ts +++ b/test/read_type.test.ts @@ -129,7 +129,7 @@ describe('from_file', () => { file = undefined }) - async function testing(value: any | undefined, scheme: T, should_be_successful: boolean, data?: any) { + async function testing(value: string | undefined, scheme: T, should_be_successful: boolean, data?: any) { file = fileSync() const name = file.name @@ -153,7 +153,7 @@ describe('from_file', () => { } test('basic string', () => testing('Coucou', Type.String(), true, 'Coucou')) - test('basic number', () => testing(12, Type.Integer(), true, 12)) + test('basic number', () => testing('12', Type.Integer(), true, 12)) test('file does not exist', () => testing(undefined, Type.String(), false)) test('Last empty line is trimmed', () => testing('Coucou\n\r\n ', Type.String(), true, 'Coucou')) })