Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
tests: fix irrelevant type error in test
Browse files Browse the repository at this point in the history
  • Loading branch information
helmturner committed Nov 26, 2023
1 parent 92ffe33 commit d7c8dbc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, string> = {
const stringHandler = {
primitive: "string",
};
} as TsonType<string, string>;
const opts: TsonOptions = {
types: [stringHandler, stringHandler],
};
Expand Down Expand Up @@ -98,9 +98,9 @@ test("async: duplicate keys", async () => {
});

test("async: multiple handlers for primitive string found", async () => {
const stringHandler: TsonType<string, string> = {
const stringHandler = {
primitive: "string",
};
} as TsonType<string, string>;

const err = await waitError(async () => {
const iterator = createTsonAsync({
Expand Down

0 comments on commit d7c8dbc

Please sign in to comment.