restructure test directory
This commit is contained in:
11
test/fixtures/syntax/classes/constructor/actual.js
vendored
Normal file
11
test/fixtures/syntax/classes/constructor/actual.js
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
class Test {
|
||||
constructor() {
|
||||
this.state = "test";
|
||||
}
|
||||
}
|
||||
|
||||
class Foo extends Bar {
|
||||
constructor() {
|
||||
this.state = "test";
|
||||
}
|
||||
}
|
||||
24
test/fixtures/syntax/classes/constructor/expected.js
vendored
Normal file
24
test/fixtures/syntax/classes/constructor/expected.js
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
var Test = function () {
|
||||
function Test() {
|
||||
this.state = "test";
|
||||
}
|
||||
return Test;
|
||||
}();
|
||||
|
||||
var Foo = function(Bar) {
|
||||
function Foo() {
|
||||
this.state = "test";
|
||||
}
|
||||
|
||||
Foo.prototype = Object.create(Bar.prototype, {
|
||||
constructor: {
|
||||
value: Foo,
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true
|
||||
}
|
||||
});
|
||||
|
||||
Foo.__proto__ = Bar;
|
||||
return Foo;
|
||||
}(Bar);
|
||||
Reference in New Issue
Block a user