add modules remap tests
This commit is contained in:
parent
198a9c6ead
commit
bea903c69f
7
test/fixtures/transformation/es6-modules-amd/remap/actual.js
vendored
Normal file
7
test/fixtures/transformation/es6-modules-amd/remap/actual.js
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
export var test = 2;
|
||||||
|
test = 5;
|
||||||
|
|
||||||
|
(function () {
|
||||||
|
var test = 2;
|
||||||
|
test = 3;
|
||||||
|
})();
|
||||||
11
test/fixtures/transformation/es6-modules-amd/remap/expected.js
vendored
Normal file
11
test/fixtures/transformation/es6-modules-amd/remap/expected.js
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
define(["exports"], function (exports) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
var test = exports.test = 2;
|
||||||
|
test = 5;
|
||||||
|
|
||||||
|
(function () {
|
||||||
|
var test = 2;
|
||||||
|
test = 3;
|
||||||
|
})();
|
||||||
|
});
|
||||||
7
test/fixtures/transformation/es6-modules-common/remap/actual.js
vendored
Normal file
7
test/fixtures/transformation/es6-modules-common/remap/actual.js
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
export var test = 2;
|
||||||
|
test = 5;
|
||||||
|
|
||||||
|
(function () {
|
||||||
|
var test = 2;
|
||||||
|
test = 3;
|
||||||
|
})();
|
||||||
9
test/fixtures/transformation/es6-modules-common/remap/expected.js
vendored
Normal file
9
test/fixtures/transformation/es6-modules-common/remap/expected.js
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
"use strict";
|
||||||
|
|
||||||
|
var test = exports.test = 2;
|
||||||
|
test = exports.test = 5;
|
||||||
|
|
||||||
|
(function () {
|
||||||
|
var test = 2;
|
||||||
|
test = 3;
|
||||||
|
})();
|
||||||
7
test/fixtures/transformation/es6-modules-ignore/remap/actual.js
vendored
Normal file
7
test/fixtures/transformation/es6-modules-ignore/remap/actual.js
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
export var test = 2;
|
||||||
|
test = 5;
|
||||||
|
|
||||||
|
(function () {
|
||||||
|
var test = 2;
|
||||||
|
test = 3;
|
||||||
|
})();
|
||||||
9
test/fixtures/transformation/es6-modules-ignore/remap/expected.js
vendored
Normal file
9
test/fixtures/transformation/es6-modules-ignore/remap/expected.js
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
"use strict";
|
||||||
|
|
||||||
|
var test = 2;
|
||||||
|
test = 5;
|
||||||
|
|
||||||
|
(function () {
|
||||||
|
var test = 2;
|
||||||
|
test = 3;
|
||||||
|
})();
|
||||||
7
test/fixtures/transformation/es6-modules-umd/remap/actual.js
vendored
Normal file
7
test/fixtures/transformation/es6-modules-umd/remap/actual.js
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
export var test = 2;
|
||||||
|
test = 5;
|
||||||
|
|
||||||
|
(function () {
|
||||||
|
var test = 2;
|
||||||
|
test = 3;
|
||||||
|
})();
|
||||||
17
test/fixtures/transformation/es6-modules-umd/remap/expected.js
vendored
Normal file
17
test/fixtures/transformation/es6-modules-umd/remap/expected.js
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
(function (factory) {
|
||||||
|
if (typeof define === "function" && define.amd) {
|
||||||
|
define(["exports"], factory);
|
||||||
|
} else if (typeof exports !== "undefined") {
|
||||||
|
factory(exports);
|
||||||
|
}
|
||||||
|
})(function (exports) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
var test = exports.test = 2;
|
||||||
|
test = 5;
|
||||||
|
|
||||||
|
(function () {
|
||||||
|
var test = 2;
|
||||||
|
test = 3;
|
||||||
|
})();
|
||||||
|
});
|
||||||
Loading…
x
Reference in New Issue
Block a user