diff --git a/Userland/Libraries/LibJS/Tests/test-common.js b/Userland/Libraries/LibJS/Tests/test-common.js index 6473f38b7c..4d9ae071c9 100644 --- a/Userland/Libraries/LibJS/Tests/test-common.js +++ b/Userland/Libraries/LibJS/Tests/test-common.js @@ -296,7 +296,7 @@ class ExpectationError extends Error { this.__doMatcher(() => { try { this.target(); - this.__expect(false); + this.__expect(false, () => "toThrowWithMessage: target function did not throw"); } catch (e) { this.__expect( e instanceof class_,