From b338b541ac828113667fdd24c18db97d3e47c282 Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Mon, 8 Jul 2024 21:28:39 +0200 Subject: fix(node/assert): throws not checking error instance (#24466) The implementation for `assert.throws()` from `node:assert` didn't work when the expected value was an `Error` constructor. In this case the thrown error should checked if it's an instance of said constructor. Fixes https://github.com/denoland/deno/issues/24464 --- tests/integration/node_unit_tests.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/integration/node_unit_tests.rs') diff --git a/tests/integration/node_unit_tests.rs b/tests/integration/node_unit_tests.rs index 15d2021c1..4f0b61378 100644 --- a/tests/integration/node_unit_tests.rs +++ b/tests/integration/node_unit_tests.rs @@ -53,6 +53,7 @@ util::unit_test_factory!( _fs_writeFile_test = _fs / _fs_writeFile_test, _fs_write_test = _fs / _fs_write_test, async_hooks_test, + assert_test, assertion_error_test, buffer_test, child_process_test, -- cgit v1.2.3