mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
Meta: Increase the line length enforced by prettier to 120
This matches our coding style recommendation in CodingStyle.md, and matches our python formatting.
This commit is contained in:
parent
b7ecdad685
commit
019c529c07
Notes:
github-actions[bot]
2025-10-31 23:56:51 +00:00
Author: https://github.com/trflynn89
Commit: 019c529c07
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6654
178 changed files with 774 additions and 2019 deletions
|
|
@ -6,33 +6,21 @@ describe("errors", () => {
|
|||
test("constructor argument count", () => {
|
||||
expect(() => {
|
||||
Proxy.revocable();
|
||||
}).toThrowWithMessage(
|
||||
TypeError,
|
||||
"Expected target argument of Proxy constructor to be object, got undefined"
|
||||
);
|
||||
}).toThrowWithMessage(TypeError, "Expected target argument of Proxy constructor to be object, got undefined");
|
||||
|
||||
expect(() => {
|
||||
Proxy.revocable({});
|
||||
}).toThrowWithMessage(
|
||||
TypeError,
|
||||
"Expected handler argument of Proxy constructor to be object, got undefined"
|
||||
);
|
||||
}).toThrowWithMessage(TypeError, "Expected handler argument of Proxy constructor to be object, got undefined");
|
||||
});
|
||||
|
||||
test("constructor requires objects", () => {
|
||||
expect(() => {
|
||||
Proxy.revocable(1, {});
|
||||
}).toThrowWithMessage(
|
||||
TypeError,
|
||||
"Expected target argument of Proxy constructor to be object, got 1"
|
||||
);
|
||||
}).toThrowWithMessage(TypeError, "Expected target argument of Proxy constructor to be object, got 1");
|
||||
|
||||
expect(() => {
|
||||
Proxy.revocable({}, 1);
|
||||
}).toThrowWithMessage(
|
||||
TypeError,
|
||||
"Expected handler argument of Proxy constructor to be object, got 1"
|
||||
);
|
||||
}).toThrowWithMessage(TypeError, "Expected handler argument of Proxy constructor to be object, got 1");
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue