Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import assert from "node:assert/strict";
- describe("Test", function () {
- it("throws", async function () {
- const error = new Error("msg");
- assert.throws(() => {
- throw error;
- }, error);
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment