From 73c8650ea001ac7e26a034d5644a36edd94ea91a Mon Sep 17 00:00:00 2001 From: Sam Kravitz Date: Wed, 2 Aug 2023 17:19:10 -0500 Subject: [PATCH] LibJS: Expect this.target to have typeof number in toBeCloseTo The previous expectation of typeof value was inconsistent with the expect message. --- 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 ef84a268db..f7d7eb860f 100644 --- a/Userland/Libraries/LibJS/Tests/test-common.js +++ b/Userland/Libraries/LibJS/Tests/test-common.js @@ -90,7 +90,7 @@ class ExpectationError extends Error { toBeCloseTo(value) { this.__expect( typeof this.target === "number", - () => `toBeCloseTo: expected target of type number, got ${typeof value}` + () => `toBeCloseTo: expected target of type number, got ${typeof this.target}` ); this.__expect( typeof value === "number",