mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:47:44 +00:00
LibJS: Indent tests with 4 spaces instead of 2
This commit is contained in:
parent
15de2eda2b
commit
1ef573eb30
261 changed files with 8536 additions and 8497 deletions
|
@ -1,39 +1,39 @@
|
|||
test("basic method shorthand", () => {
|
||||
const o = {
|
||||
foo: "bar",
|
||||
getFoo() {
|
||||
return this.foo;
|
||||
},
|
||||
};
|
||||
expect(o.getFoo()).toBe("bar");
|
||||
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");
|
||||
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");
|
||||
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");
|
||||
const o = {
|
||||
foo: "bar",
|
||||
[4 + 10]() {
|
||||
return this.foo;
|
||||
},
|
||||
};
|
||||
expect(o[14]()).toBe("bar");
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue