move all plugin tests out of babel-core and into their appropriate folders

This commit is contained in:
Sebastian McKenzie
2015-11-08 23:04:10 -08:00
parent 5f40b53dee
commit 15969a0904
1189 changed files with 365 additions and 65 deletions

View File

@@ -10,5 +10,8 @@
],
"dependencies": {
"babel-runtime": "^5.0.0"
},
"devDependencies": {
"babel-helper-plugin-test-runner": "^6.0.0"
}
}
}

View File

@@ -0,0 +1,9 @@
class MyClass {
test() {
const that = this;
const func = () => this === that;
return func();
}
}
assert(new MyClass().test());

View File

@@ -0,0 +1,3 @@
{
"plugins": ["external-helpers-2", "transform-es2015-block-scoping", "transform-es2015-classes", "transform-jscript", "transform-es2015-arrow-functions"]
}

View File

@@ -0,0 +1,2 @@
class Test {
}

View File

@@ -0,0 +1,7 @@
var Test = (function () {
function Test() {
babelHelpers.classCallCheck(this, Test);
}
return Test;
})();

View File

@@ -0,0 +1,7 @@
var IdenticalName = function IdenticalName(x) {
return x;
};
(function foo() {
});

View File

@@ -0,0 +1,13 @@
var IdenticalName = (function () {
function IdenticalName(x) {
return x;
}
return IdenticalName;
})();
(function () {
function foo() {}
return foo;
})();

View File

@@ -0,0 +1 @@
require("babel-helper-plugin-test-runner")(__dirname);