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