Add full-blown test for the selfContained transformer

This commit is contained in:
Aluísio Augusto Silva Gonçalves
2015-01-18 23:10:26 -02:00
parent 02019d4d8f
commit e2bf61379f
2 changed files with 33 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
import foo, * as bar from "someModule";
export const myWord = Symbol("abc");
export function* giveWord () {
yield myWord;
}

View File

@@ -0,0 +1,27 @@
"use strict";
var _to5Runtime = require("6to5-runtime/6to5");
var _core = require("6to5-runtime/core-js");
var _regeneratorRuntime = require("6to5-runtime/regenerator");
var giveWord = _regeneratorRuntime.mark(function giveWord() {
return _regeneratorRuntime.wrap(function giveWord$(context$1$0) {
while (1) switch (context$1$0.prev = context$1$0.next) {
case 0:
context$1$0.next = 2;
return myWord;
case 2:
case "end":
return context$1$0.stop();
}
}, giveWord, this);
});
exports.giveWord = giveWord;
var foo = _to5Runtime.interopRequire(require("someModule"));
var bar = _to5Runtime.interopRequireWildcard(require("someModule"));
var myWord = exports.myWord = _core.Symbol("abc");