add use strict directive to modules tests
This commit is contained in:
parent
08aac0bf06
commit
24df725f48
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
var _a2 = require("./a");
|
||||
|
||||
var Foo = (function () {
|
||||
@ -12,4 +14,4 @@ var Foo = (function () {
|
||||
}
|
||||
}]);
|
||||
return Foo;
|
||||
})();
|
||||
})();
|
||||
@ -1,7 +1,9 @@
|
||||
"use strict";
|
||||
|
||||
define(["exports"], function (exports) {
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
var a = 1;
|
||||
exports.default = a;
|
||||
});
|
||||
});
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
define(["exports"], function (exports) {
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
@ -22,4 +24,4 @@ define(["exports"], function (exports) {
|
||||
exports.default = (function () {
|
||||
return "foo";
|
||||
})();
|
||||
});
|
||||
});
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
define(["exports", "foo"], function (exports, _foo) {
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
@ -55,4 +57,4 @@ define(["exports", "foo"], function (exports, _foo) {
|
||||
return _foo.bar;
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
define(["exports"], function (exports) {
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
@ -9,4 +11,4 @@ define(["exports"], function (exports) {
|
||||
exports.default = foo;
|
||||
exports.default = foo;
|
||||
exports.bar = bar;
|
||||
});
|
||||
});
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
define(["exports"], function (exports) {
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
@ -19,4 +21,4 @@ define(["exports"], function (exports) {
|
||||
class foo8 {}
|
||||
|
||||
exports.foo8 = foo8;
|
||||
});
|
||||
});
|
||||
@ -1 +1,3 @@
|
||||
define("my custom module name", [], function () {});
|
||||
"use strict";
|
||||
|
||||
define("my custom module name", [], function () {});
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
define(["exports", "./evens"], function (exports, _evens) {
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
@ -14,4 +16,4 @@ define(["exports", "./evens"], function (exports, _evens) {
|
||||
return !isEven(n);
|
||||
};
|
||||
})(_evens.isEven);
|
||||
});
|
||||
});
|
||||
@ -1,6 +1,8 @@
|
||||
"use strict";
|
||||
|
||||
define(["foo"], function (_foo) {
|
||||
var _foo2 = babelHelpers.interopRequireDefault(_foo);
|
||||
|
||||
_foo2.default;
|
||||
_foo2.default;
|
||||
});
|
||||
});
|
||||
@ -1,4 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
define(["foo"], function (_foo) {
|
||||
var foo = babelHelpers.interopRequireWildcard(_foo);
|
||||
foo;
|
||||
});
|
||||
});
|
||||
@ -1,6 +1,8 @@
|
||||
"use strict";
|
||||
|
||||
define(["foo"], function (_foo) {
|
||||
var _foo2 = babelHelpers.interopRequireDefault(_foo);
|
||||
|
||||
_foo2.default;
|
||||
_foo.baz;
|
||||
});
|
||||
});
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
define(["foo"], function (_foo) {
|
||||
_foo.bar;
|
||||
_foo.bar2;
|
||||
@ -5,4 +7,4 @@ define(["foo"], function (_foo) {
|
||||
_foo.bar;
|
||||
_foo.bar;
|
||||
_foo.xyz;
|
||||
});
|
||||
});
|
||||
@ -1 +1,3 @@
|
||||
define(["foo", "foo-bar", "./directory/foo-bar"], function () {});
|
||||
"use strict";
|
||||
|
||||
define(["foo", "foo-bar", "./directory/foo-bar"], function () {});
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
define("es6.modules-amd/module-name/expected", [], function () {
|
||||
foobar();
|
||||
});
|
||||
});
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
define(["exports", "foo", "foo-bar", "./directory/foo-bar"], function (exports, _foo) {
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
@ -11,4 +13,4 @@ define(["exports", "foo", "foo-bar", "./directory/foo-bar"], function (exports,
|
||||
foo2;
|
||||
_foo.bar;
|
||||
_foo.foo;
|
||||
});
|
||||
});
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
define(["exports"], function (exports) {
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
@ -22,4 +24,4 @@ define(["exports"], function (exports) {
|
||||
exports.e = d;
|
||||
exports.f = d;
|
||||
exports.f = exports.e = d = 4;
|
||||
});
|
||||
});
|
||||
@ -1 +1,3 @@
|
||||
exports.default = foo;
|
||||
"use strict";
|
||||
|
||||
exports.default = foo;
|
||||
@ -1 +1,3 @@
|
||||
exports.default = foo;
|
||||
"use strict";
|
||||
|
||||
exports.default = foo;
|
||||
@ -1,2 +1,4 @@
|
||||
"use strict";
|
||||
|
||||
exports.foo = foo;
|
||||
function foo() {}
|
||||
function foo() {}
|
||||
@ -1,5 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
var _foo = require("foo");
|
||||
|
||||
_foo.default;
|
||||
_foo.default;
|
||||
_foo.foo3;
|
||||
_foo.foo3;
|
||||
@ -1,6 +1,8 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.Cachier = Cachier;
|
||||
exports.default = new Cachier();
|
||||
function Cachier(databaseName) {}
|
||||
function Cachier(databaseName) {}
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
@ -17,4 +19,4 @@ exports.default = foo;
|
||||
|
||||
exports.default = (function () {
|
||||
return "foo";
|
||||
})();
|
||||
})();
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
@ -55,4 +57,4 @@ Object.defineProperty(exports, "bar", {
|
||||
get: function () {
|
||||
return _foo.bar;
|
||||
}
|
||||
});
|
||||
});
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
@ -7,4 +9,4 @@ exports.bar = bar;
|
||||
exports.bar = foo;
|
||||
exports.default = foo;
|
||||
exports.default = foo;
|
||||
exports.bar = bar;
|
||||
exports.bar = bar;
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
@ -12,4 +14,4 @@ let foo5 = exports.foo5 = undefined;
|
||||
const foo6 = exports.foo6 = 3;
|
||||
function foo7() {}
|
||||
class foo8 {}
|
||||
exports.foo8 = foo8;
|
||||
exports.foo8 = foo8;
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
@ -14,4 +16,4 @@ var isOdd = exports.isOdd = (function (isEven) {
|
||||
return function (n) {
|
||||
return !isEven(n);
|
||||
};
|
||||
})(_evens.isEven);
|
||||
})(_evens.isEven);
|
||||
@ -1,6 +1,8 @@
|
||||
"use strict";
|
||||
|
||||
var _foo = require("foo");
|
||||
|
||||
var _foo2 = babelHelpers.interopRequireDefault(_foo);
|
||||
|
||||
_foo2.default;
|
||||
_foo2.default;
|
||||
_foo2.default;
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
var _foo = require("foo");
|
||||
|
||||
var foo = babelHelpers.interopRequireWildcard(_foo);
|
||||
var foo = babelHelpers.interopRequireWildcard(_foo);
|
||||
@ -1,6 +1,8 @@
|
||||
"use strict";
|
||||
|
||||
var _foo = require("foo");
|
||||
|
||||
var _foo2 = babelHelpers.interopRequireDefault(_foo);
|
||||
|
||||
_foo2.default;
|
||||
_foo.baz;
|
||||
_foo.baz;
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
var _foo = require("foo");
|
||||
|
||||
_foo.bar;
|
||||
@ -5,4 +7,4 @@ _foo.bar2;
|
||||
_foo.baz;
|
||||
_foo.bar;
|
||||
_foo.bar;
|
||||
_foo.xyz;
|
||||
_foo.xyz;
|
||||
@ -1,5 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
require("foo");
|
||||
|
||||
require("foo-bar");
|
||||
|
||||
require("./directory/foo-bar");
|
||||
require("./directory/foo-bar");
|
||||
@ -1,5 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
function _module() {}
|
||||
exports.module = _module;
|
||||
exports.module = _module;
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
@ -26,4 +28,4 @@ var test = exports.test = 5;
|
||||
|
||||
_foo4.bar;
|
||||
_foo5.foo;
|
||||
_foo2.default;
|
||||
_foo2.default;
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
@ -25,4 +27,4 @@ var d = 3;
|
||||
exports.e = d;
|
||||
exports.f = d;
|
||||
|
||||
exports.f = exports.e = d = 4;
|
||||
exports.f = exports.e = d = 4;
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
System.register([], function (_export) {
|
||||
_export("default", function () {});
|
||||
|
||||
@ -27,4 +29,4 @@ System.register([], function (_export) {
|
||||
})());
|
||||
}
|
||||
};
|
||||
});
|
||||
});
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
System.register(["foo"], function (_export) {
|
||||
return {
|
||||
setters: [function (_foo) {
|
||||
@ -19,4 +21,4 @@ System.register(["foo"], function (_export) {
|
||||
}],
|
||||
execute: function () {}
|
||||
};
|
||||
});
|
||||
});
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
System.register([], function (_export) {
|
||||
return {
|
||||
setters: [],
|
||||
@ -17,4 +19,4 @@ System.register([], function (_export) {
|
||||
_export("bar", bar);
|
||||
}
|
||||
};
|
||||
});
|
||||
});
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
System.register([], function (_export) {
|
||||
return {
|
||||
setters: [],
|
||||
@ -37,4 +39,4 @@ System.register([], function (_export) {
|
||||
_export("foo3", foo3 = 5);
|
||||
}
|
||||
};
|
||||
});
|
||||
});
|
||||
@ -1,6 +1,8 @@
|
||||
"use strict";
|
||||
|
||||
System.register("my custom module name", [], function (_export) {
|
||||
return {
|
||||
setters: [],
|
||||
execute: function () {}
|
||||
};
|
||||
});
|
||||
});
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
System.register(["./evens"], function (_export) {
|
||||
var isEven, p, a, i, j, isOdd;
|
||||
return {
|
||||
@ -30,4 +32,4 @@ System.register(["./evens"], function (_export) {
|
||||
_export("isOdd", isOdd);
|
||||
}
|
||||
};
|
||||
});
|
||||
});
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
System.register(["foo"], function (_export) {
|
||||
var foo, foo2;
|
||||
return {
|
||||
@ -7,4 +9,4 @@ System.register(["foo"], function (_export) {
|
||||
}],
|
||||
execute: function () {}
|
||||
};
|
||||
});
|
||||
});
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
System.register(["foo"], function (_export) {
|
||||
var foo;
|
||||
return {
|
||||
@ -6,4 +8,4 @@ System.register(["foo"], function (_export) {
|
||||
}],
|
||||
execute: function () {}
|
||||
};
|
||||
});
|
||||
});
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
System.register(["foo"], function (_export) {
|
||||
var foo, xyz;
|
||||
return {
|
||||
@ -7,4 +9,4 @@ System.register(["foo"], function (_export) {
|
||||
}],
|
||||
execute: function () {}
|
||||
};
|
||||
});
|
||||
});
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
System.register(["foo"], function (_export) {
|
||||
var bar, bar2, baz, baz2, baz3, xyz;
|
||||
return {
|
||||
@ -11,4 +13,4 @@ System.register(["foo"], function (_export) {
|
||||
}],
|
||||
execute: function () {}
|
||||
};
|
||||
});
|
||||
});
|
||||
@ -1,6 +1,8 @@
|
||||
"use strict";
|
||||
|
||||
System.register(["foo", "foo-bar", "./directory/foo-bar"], function (_export) {
|
||||
return {
|
||||
setters: [function (_foo) {}, function (_fooBar) {}, function (_directoryFooBar) {}],
|
||||
execute: function () {}
|
||||
};
|
||||
});
|
||||
});
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
System.register(["foo", "foo-bar", "./directory/foo-bar"], function (_export) {
|
||||
var foo, foo2, bar, bar2, test2;
|
||||
return {
|
||||
@ -17,4 +19,4 @@ System.register(["foo", "foo-bar", "./directory/foo-bar"], function (_export) {
|
||||
_export("default", test);
|
||||
}
|
||||
};
|
||||
});
|
||||
});
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
System.register([], function (_export) {
|
||||
var test, a, b, d;
|
||||
return {
|
||||
@ -38,4 +40,4 @@ System.register([], function (_export) {
|
||||
_export("f", _export("e", d = 4));
|
||||
}
|
||||
};
|
||||
});
|
||||
});
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
(function (global, factory) {
|
||||
if (typeof define === "function" && define.amd) {
|
||||
define(["exports"], factory);
|
||||
@ -34,4 +36,4 @@
|
||||
exports.default = (function () {
|
||||
return "foo";
|
||||
})();
|
||||
});
|
||||
});
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
(function (global, factory) {
|
||||
if (typeof define === "function" && define.amd) {
|
||||
define(["exports", "foo"], factory);
|
||||
@ -67,4 +69,4 @@
|
||||
return _foo.bar;
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
(function (global, factory) {
|
||||
if (typeof define === "function" && define.amd) {
|
||||
define(["exports"], factory);
|
||||
@ -21,4 +23,4 @@
|
||||
exports.default = foo;
|
||||
exports.default = foo;
|
||||
exports.bar = bar;
|
||||
});
|
||||
});
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
(function (global, factory) {
|
||||
if (typeof define === "function" && define.amd) {
|
||||
define(["exports"], factory);
|
||||
@ -31,4 +33,4 @@
|
||||
class foo8 {}
|
||||
|
||||
exports.foo8 = foo8;
|
||||
});
|
||||
});
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
(function (global, factory) {
|
||||
if (typeof define === "function" && define.amd) {
|
||||
define("my custom module name", [], factory);
|
||||
@ -10,4 +12,4 @@
|
||||
factory();
|
||||
global.myCustomModuleName = mod.exports;
|
||||
}
|
||||
})(this, function () {});
|
||||
})(this, function () {});
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
(function (global, factory) {
|
||||
if (typeof define === "function" && define.amd) {
|
||||
define(["exports", "./evens"], factory);
|
||||
@ -26,4 +28,4 @@
|
||||
return !isEven(n);
|
||||
};
|
||||
})(_evens.isEven);
|
||||
});
|
||||
});
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
(function (global, factory) {
|
||||
if (typeof define === "function" && define.amd) {
|
||||
define(["foo"], factory);
|
||||
@ -15,4 +17,4 @@
|
||||
|
||||
_foo2.default;
|
||||
_foo2.default;
|
||||
});
|
||||
});
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
(function (global, factory) {
|
||||
if (typeof define === "function" && define.amd) {
|
||||
define(["foo"], factory);
|
||||
@ -13,4 +15,4 @@
|
||||
})(this, function (_foo) {
|
||||
var foo = babelHelpers.interopRequireWildcard(_foo);
|
||||
foo;
|
||||
});
|
||||
});
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
(function (global, factory) {
|
||||
if (typeof define === "function" && define.amd) {
|
||||
define(["foo"], factory);
|
||||
@ -14,4 +16,4 @@
|
||||
var _foo2 = babelHelpers.interopRequireDefault(_foo);
|
||||
|
||||
_foo.baz;
|
||||
});
|
||||
});
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
(function (global, factory) {
|
||||
if (typeof define === "function" && define.amd) {
|
||||
define(["foo"], factory);
|
||||
@ -17,4 +19,4 @@
|
||||
_foo.bar;
|
||||
_foo.bar;
|
||||
_foo.xyz;
|
||||
});
|
||||
});
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
(function (global, factory) {
|
||||
if (typeof define === "function" && define.amd) {
|
||||
define(["foo", "foo-bar", "./directory/foo-bar"], factory);
|
||||
@ -10,4 +12,4 @@
|
||||
factory(global.foo, global.fooBar, global.fooBar);
|
||||
global.actual = mod.exports;
|
||||
}
|
||||
})(this, function () {});
|
||||
})(this, function () {});
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
(function (global, factory) {
|
||||
if (typeof define === "function" && define.amd) {
|
||||
define("MyLib", [], factory);
|
||||
@ -12,4 +14,4 @@
|
||||
}
|
||||
})(this, function () {
|
||||
foobar();
|
||||
});
|
||||
});
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
(function (global, factory) {
|
||||
if (typeof define === "function" && define.amd) {
|
||||
define("es6.modules-umd/module-name/expected", [], factory);
|
||||
@ -12,4 +14,4 @@
|
||||
}
|
||||
})(this, function () {
|
||||
foobar();
|
||||
});
|
||||
});
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
(function (global, factory) {
|
||||
if (typeof define === "function" && define.amd) {
|
||||
define(["./lib/render"], factory);
|
||||
@ -10,4 +12,4 @@
|
||||
factory(global.render);
|
||||
global.actual = mod.exports;
|
||||
}
|
||||
})(this, function (_render) {});
|
||||
})(this, function (_render) {});
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
(function (global, factory) {
|
||||
if (typeof define === "function" && define.amd) {
|
||||
define(["exports", "foo", "foo-bar", "./directory/foo-bar"], factory);
|
||||
@ -21,4 +23,4 @@
|
||||
exports.default = test;
|
||||
_foo.bar;
|
||||
_foo.foo;
|
||||
});
|
||||
});
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
(function (global, factory) {
|
||||
if (typeof define === "function" && define.amd) {
|
||||
define(["exports"], factory);
|
||||
@ -34,4 +36,4 @@
|
||||
exports.e = d;
|
||||
exports.f = d;
|
||||
exports.f = exports.e = d = 4;
|
||||
});
|
||||
});
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
@ -24,4 +26,4 @@ let Container = (function () {
|
||||
return Container;
|
||||
})();
|
||||
|
||||
exports.default = Container;
|
||||
exports.default = Container;
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
var _events2 = require("events");
|
||||
|
||||
var _events3 = babelHelpers.interopRequireDefault(_events2);
|
||||
@ -16,4 +18,4 @@ let Template = (function () {
|
||||
return Template;
|
||||
})();
|
||||
|
||||
console.log(new Template().events());
|
||||
console.log(new Template().events());
|
||||
Loading…
x
Reference in New Issue
Block a user