dan.the.discloserD
Deno4y ago
4 replies
dan.the.discloser

assertThrowsAsync

does

assertThrowsAsync

still exist?

I see it here:

https://medium.com/deno-the-complete-reference/testing-with-deno-part-4-asserts-5b708c0e33e4

but not in the documentation or the source.


Is this the way I should with with the normal assertThrows

Deno.test("test DB function", 
  async function () {
      await assertThrows(async () => {
      await db_call()
      });
  },
);
Medium
Learn all about asserts in Deno
Testing with Deno — Part 4 Asserts
Was this page helpful?