mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 20:09:04 +00:00
12 lines
240 B
TypeScript
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("");
|
|
});
|
|
});
|