Everywhere: Hoist the Libraries folder to the top-level

This commit is contained in:
Timothy Flynn 2024-11-09 12:25:08 -05:00 committed by Andreas Kling
commit 93712b24bf
Notes: github-actions[bot] 2024-11-10 11:51:52 +00:00
4547 changed files with 104 additions and 113 deletions

View file

@ -0,0 +1,50 @@
test("basic method shorthand", () => {
const o = {
foo: "bar",
getFoo() {
return this.foo;
},
};
expect(o.getFoo()).toBe("bar");
});
test("numeric literal method shorthand", () => {
const o = {
foo: "bar",
12() {
return this.foo;
},
};
expect(o[12]()).toBe("bar");
});
test("string literal method shorthand", () => {
const o = {
foo: "bar",
"hello friends"() {
return this.foo;
},
};
expect(o["hello friends"]()).toBe("bar");
});
test("computed property method shorthand", () => {
const o = {
foo: "bar",
[4 + 10]() {
return this.foo;
},
};
expect(o[14]()).toBe("bar");
});
test("symbol computed property shorthand", () => {
const s = Symbol("foo");
const o = {
foo: "bar",
[s]() {
return this.foo;
},
};
expect(o[s]()).toBe("bar");
});