Skip to content

Commit

Permalink
fail if it doesn't throw
Browse files Browse the repository at this point in the history
  • Loading branch information
dherman committed Feb 2, 2025
1 parent e8c195a commit 0536f2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/napi/lib/container.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ describe("container", function () {
it("fails with a type error when not given a RefCell", function () {
try {
addon.stringRefCellConcat("hello", " world");
assert.fail("should have thrown");
} catch (err) {
assert.instanceOf(err, TypeError);
assert.strictEqual(err.message, "expected std::cell::RefCell");
Expand Down

0 comments on commit 0536f2d

Please sign in to comment.