mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 17:25:06 +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,24 +1,24 @@
|
|||
test("basic functionality", () => {
|
||||
function Foo() {
|
||||
this.x = 123;
|
||||
}
|
||||
function Foo() {
|
||||
this.x = 123;
|
||||
}
|
||||
|
||||
const foo = new Foo();
|
||||
expect(foo instanceof Foo).toBeTrue();
|
||||
const foo = new Foo();
|
||||
expect(foo instanceof Foo).toBeTrue();
|
||||
});
|
||||
|
||||
test("derived ES5 classes", () => {
|
||||
function Base() {
|
||||
this.is_base = true;
|
||||
}
|
||||
function Base() {
|
||||
this.is_base = true;
|
||||
}
|
||||
|
||||
function Derived() {
|
||||
this.is_derived = true;
|
||||
}
|
||||
function Derived() {
|
||||
this.is_derived = true;
|
||||
}
|
||||
|
||||
Object.setPrototypeOf(Derived.prototype, Base.prototype);
|
||||
Object.setPrototypeOf(Derived.prototype, Base.prototype);
|
||||
|
||||
const d = new Derived();
|
||||
expect(d instanceof Derived).toBeTrue();
|
||||
expect(d instanceof Base).toBeTrue();
|
||||
const d = new Derived();
|
||||
expect(d instanceof Derived).toBeTrue();
|
||||
expect(d instanceof Base).toBeTrue();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue