mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibJS: Expect this.target to have typeof number in toBeCloseTo
The previous expectation of typeof value was inconsistent with the expect message.
This commit is contained in:
committed by
Andreas Kling
parent
2eaa528a0e
commit
73c8650ea0
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user