From f28491dbe7c4e184b839e319d86ed12391531116 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Thu, 13 May 2021 23:33:15 +0100 Subject: [PATCH] LibJS/Tests: Add details for toThrowWithMessage did-not-throw case --- Userland/Libraries/LibJS/Tests/test-common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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_,