From d7c8dbc1595db1b13074e67e1c4b1ffd7a119958 Mon Sep 17 00:00:00 2001 From: Alec Helmturner Date: Sat, 25 Nov 2023 18:46:24 -0600 Subject: [PATCH] tests: fix irrelevant type error in test --- src/index.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/index.test.ts b/src/index.test.ts index 4eee848..27b33a6 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -5,9 +5,9 @@ import { TsonOptions, TsonType, createTson } from "./index.js"; import { expectError, waitError } from "./internals/testUtils.js"; test("multiple handlers for primitive string found", () => { - const stringHandler: TsonType = { + const stringHandler = { primitive: "string", - }; + } as TsonType; const opts: TsonOptions = { types: [stringHandler, stringHandler], }; @@ -98,9 +98,9 @@ test("async: duplicate keys", async () => { }); test("async: multiple handlers for primitive string found", async () => { - const stringHandler: TsonType = { + const stringHandler = { primitive: "string", - }; + } as TsonType; const err = await waitError(async () => { const iterator = createTsonAsync({