mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-15 14:02:20 +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:
parent
2eaa528a0e
commit
73c8650ea0
Notes:
sideshowbarker
2024-07-17 14:36:19 +09:00
Author: https://github.com/samkravitz
Commit: 73c8650ea0
Pull-request: https://github.com/SerenityOS/serenity/pull/20338
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ class ExpectationError extends Error {
|
||||||
toBeCloseTo(value) {
|
toBeCloseTo(value) {
|
||||||
this.__expect(
|
this.__expect(
|
||||||
typeof this.target === "number",
|
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(
|
this.__expect(
|
||||||
typeof value === "number",
|
typeof value === "number",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue