Guest User

Untitled

a guest
Aug 1st, 2022
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. import assert from "node:assert/strict";
  2.  
  3. describe("Test", function () {
  4. it("throws", async function () {
  5. const error = new Error("msg");
  6. assert.throws(() => {
  7. throw error;
  8. }, error);
  9. });
  10. });
  11.  
Advertisement
Add Comment
Please, Sign In to add comment