mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 02:05:07 +02:00
test-js: Use prettier and format all files
This commit is contained in:
committed by
Andreas Kling
parent
e532888242
commit
6d58c48c2f
Notes:
sideshowbarker
2024-07-19 05:04:03 +09:00
Author: https://github.com/mattco98 Commit: https://github.com/SerenityOS/serenity/commit/6d58c48c2fb Pull-request: https://github.com/SerenityOS/serenity/pull/2689 Reviewed-by: https://github.com/linusg
@@ -1,12 +1,11 @@
|
||||
test("basic functionality", () => {
|
||||
let p = new Proxy([], {
|
||||
get(_, key) {
|
||||
if (key === "length")
|
||||
return 3;
|
||||
return Number(key);
|
||||
},
|
||||
});
|
||||
let p = new Proxy([], {
|
||||
get(_, key) {
|
||||
if (key === "length") return 3;
|
||||
return Number(key);
|
||||
},
|
||||
});
|
||||
|
||||
expect(JSON.stringify(p)).toBe("[0,1,2]");
|
||||
expect(JSON.stringify([[new Proxy(p, {})]])).toBe("[[[0,1,2]]]");
|
||||
expect(JSON.stringify(p)).toBe("[0,1,2]");
|
||||
expect(JSON.stringify([[new Proxy(p, {})]])).toBe("[[[0,1,2]]]");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user