move all plugin tests out of babel-core and into their appropriate folders
This commit is contained in:
@@ -13,5 +13,8 @@
|
||||
"babel-helper-remap-async-to-generator": "^6.0.14",
|
||||
"babel-types": "^6.0.14",
|
||||
"babel-runtime": "^5.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-helper-plugin-test-runner": "^6.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
(async () => { await foo(); })()
|
||||
@@ -0,0 +1,4 @@
|
||||
import { coroutine as _coroutine } from "bluebird";
|
||||
_coroutine(function* () {
|
||||
yield foo();
|
||||
})();
|
||||
@@ -0,0 +1,5 @@
|
||||
class Foo {
|
||||
async foo() {
|
||||
var wat = await bar();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import { coroutine as _coroutine } from "bluebird";
|
||||
class Foo {
|
||||
foo() {
|
||||
return _coroutine(function* () {
|
||||
var wat = yield bar();
|
||||
})();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"plugins": ["external-helpers-2"]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
var foo = async function () {
|
||||
var wat = await bar();
|
||||
};
|
||||
@@ -0,0 +1,10 @@
|
||||
import { coroutine as _coroutine } from "bluebird";
|
||||
var foo = (function () {
|
||||
var ref = _coroutine(function* () {
|
||||
var wat = yield bar();
|
||||
});
|
||||
|
||||
return function foo() {
|
||||
return ref.apply(this, arguments);
|
||||
};
|
||||
})();
|
||||
@@ -0,0 +1,3 @@
|
||||
var foo = async function bar() {
|
||||
console.log(bar);
|
||||
};
|
||||
@@ -0,0 +1,10 @@
|
||||
import { coroutine as _coroutine } from "bluebird";
|
||||
var foo = (function () {
|
||||
var ref = _coroutine(function* () {
|
||||
console.log(bar);
|
||||
});
|
||||
|
||||
return function bar() {
|
||||
return ref.apply(this, arguments);
|
||||
};
|
||||
})();
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"plugins": ["external-helpers-2", ["transform-async-to-module-method", { "module": "bluebird", "method": "coroutine" }]]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
async function foo() {
|
||||
var wat = await bar();
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
import { coroutine as _coroutine } from "bluebird";
|
||||
|
||||
let foo = (function () {
|
||||
var ref = _coroutine(function* () {
|
||||
var wat = yield bar();
|
||||
});
|
||||
|
||||
return function foo() {
|
||||
return ref.apply(this, arguments);
|
||||
};
|
||||
})();
|
||||
@@ -0,0 +1 @@
|
||||
require("babel-helper-plugin-test-runner")(__dirname);
|
||||
Reference in New Issue
Block a user