Add new tests for export * from with other names.

This commit is contained in:
Maël Nison
2017-09-12 19:13:35 -07:00
committed by Logan Smyth
parent 5006c81b77
commit 5bb6a83fa8
2 changed files with 33 additions and 0 deletions

View File

@@ -1 +1,8 @@
export let z = 100;
export * from 'mod';
export class a {}
export function b() {}
export { c } from 'mod';
export let d = 42;
export let e = 1, f = 2;
export default function() {}

View File

@@ -3,6 +3,15 @@
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.b = b;
exports.default = _default;
Object.defineProperty(exports, "c", {
enumerable: true,
get: function () {
return _mod.c;
}
});
exports.f = exports.e = exports.d = exports.a = exports.z = void 0;
var _mod = require("mod");
@@ -15,3 +24,20 @@ Object.keys(_mod).forEach(function (key) {
}
});
});
var z = 100;
exports.z = z;
class a {}
exports.a = a;
function b() {}
var d = 42;
exports.d = d;
var e = 1,
f = 2;
exports.f = f;
exports.e = e;
function _default() {}