mirror of https://github.com/webpack/webpack.git
20 lines
414 B
JavaScript
20 lines
414 B
JavaScript
"use strict";
|
|
define(["./abc"], function(abc) {
|
|
// AMD is used here, because it adds stuff to the top of the code
|
|
// we make sure to keep strict mode
|
|
|
|
var a = abc.default;
|
|
|
|
it("should keep strict mode", function() {
|
|
var x = (function() {
|
|
return this;
|
|
})();
|
|
expect((typeof x)).toBe("undefined");
|
|
});
|
|
|
|
it("should import modules in strict mode", function() {
|
|
expect(a()).toBe("undefined");
|
|
});
|
|
|
|
});
|