// Copyright 2018-2025 the Deno authors. MIT license. import * as assert from "node:assert"; Deno.test("[node/assert] .throws() compares Error instance", () => { assert.throws( () => { throw new Error("FAIL"); }, Error, ); assert.throws( () => { throw new TypeError("FAIL"); }, TypeError, ); }); Deno.test("[node/assert] deepStrictEqual(0, -0)", () => { assert.throws( () => { assert.deepStrictEqual(0, -0); }, ); }); Deno.test("[node/assert] CallTracker correctly exported", () => { assert.strictEqual(typeof assert.CallTracker, "function"); assert.strictEqual(typeof assert.default.CallTracker, "function"); assert.strictEqual(assert.CallTracker, assert.default.CallTracker); });