Files
bun.sh/test/cli/test/expectations.test.ts
2025-01-10 03:05:05 -08:00

12 lines
240 B
TypeScript

describe(".toThrow()", () => {
it(".toThrow() behaves the same as .toThrow('')", () => {
expect(() => {
throw new Error("test");
}).toThrow();
expect(() => {
throw new Error("test");
}).toThrow("");
});
});