Add test for T3026.

This commit is contained in:
Chris Cowan 2016-01-20 12:11:57 -08:00
parent f98dd6c76d
commit 7621d38bbd
5 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,3 @@
import bar from 'bar';
export async function foo () { }

View File

@ -0,0 +1,17 @@
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.foo = undefined;
var _bar = require('bar');
var _bar2 = babelHelpers.interopRequireDefault(_bar);
let foo = exports.foo = function () {
var ref = babelHelpers.asyncToGenerator(function* () {});
return function foo() {
return ref.apply(this, arguments);
};
}();

View File

@ -0,0 +1 @@
export async function foo () { }

View File

@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
let foo = exports.foo = function () {
var ref = babelHelpers.asyncToGenerator(function* () {});
return function foo() {
return ref.apply(this, arguments);
};
}();

View File

@ -0,0 +1,3 @@
{
"plugins": ["external-helpers", "transform-es2015-modules-commonjs", "transform-async-to-generator"]
}