diff --git a/Libraries/LibJS/Tests/test-common-tests.js b/Libraries/LibJS/Tests/test-common-tests.js index a2071f15a0..8dec6e1fb5 100644 --- a/Libraries/LibJS/Tests/test-common-tests.js +++ b/Libraries/LibJS/Tests/test-common-tests.js @@ -330,7 +330,7 @@ test("toThrowWithMessage", () => { // "eval" function test("toEval", () => { expect("let a = 1").toEval(); - expect("a < 1").not.toEval(); + expect("a < 1").toEval(); expect("&&*^%#%@").not.toEval(); expect("function foo() { return 1; }; return foo();").toEval(); }); diff --git a/Libraries/LibJS/Tests/test-common.js b/Libraries/LibJS/Tests/test-common.js index 1a8e6ce6fe..b5a4663246 100644 --- a/Libraries/LibJS/Tests/test-common.js +++ b/Libraries/LibJS/Tests/test-common.js @@ -287,7 +287,7 @@ class ExpectationError extends Error { let threw = false; try { - new Function(this.target)(); + new Function(this.target); } catch (e) { threw = true; }