1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:07:36 +00:00

Base+LibJS+LibWeb: Make prettier clean

Also use "// prettier-ignore" comments where necessary rather than
excluding whole files (via .prettierignore).
This commit is contained in:
Linus Groh 2020-12-26 16:24:24 +01:00 committed by Andreas Kling
parent 76239f89c2
commit 5122f98198
24 changed files with 100 additions and 79 deletions

View file

@ -42,11 +42,14 @@ describe("[[Get]] trap normal behavior", () => {
});
test("custom receiver value", () => {
let p = new Proxy({}, {
get(target, property, receiver) {
return receiver;
},
});
let p = new Proxy(
{},
{
get(target, property, receiver) {
return receiver;
},
}
);
expect(Reflect.get(p, "foo", 42)).toBe(42);
});

View file

@ -40,7 +40,7 @@ describe("[[Set]] trap normal behavior", () => {
expect(p.foo).toBe(20);
p.foo = 10;
expect(p.foo).toBe(10);
p[Symbol.hasInstance] = "foo"
p[Symbol.hasInstance] = "foo";
expect(p[Symbol.hasInstance]).toBe("foo");
});