Skip to content

Commit

Permalink
test: add test for typeCheckerType
Browse files Browse the repository at this point in the history
  • Loading branch information
velut committed Jan 16, 2024
1 parent 5109b47 commit ecc213d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/type-checker-type.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { fromPartial } from "@total-typescript/shoehorn";
import { expect, test } from "vitest";
import { typeCheckerType } from "./type-checker-type";

test("return `any` in case of errors", async () => {
expect(
typeCheckerType(
fromPartial({
getProject() {
throw new Error();
},
}),
),
).toBe("any");
});

0 comments on commit ecc213d

Please sign in to comment.