Skip to content

Commit

Permalink
A more accurate interface snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
omrilotan committed Jan 10, 2024
1 parent cb98232 commit 2cca409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/spec/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ describe("isbot", () => {
describe("module interface", () => {
test("interface is as expected", async () => {
const types = Object.entries(await import("../../src/index")).map(
([key, value]) => [key, typeof value] as [string, string],
([key, value]) => [key, value.constructor.name] as [string, string],
);
expect(types).toMatchSnapshot();
});
Expand Down

0 comments on commit 2cca409

Please sign in to comment.