webpack/test/cases/errors/harmony-import-missing2/index.js

12 lines
269 B
JavaScript

it("should not crash on importing missing modules", function() {
expect(function() {
require("./module1");
}).toThrowError();
});
it("should not crash on importing missing modules", function() {
expect(function() {
require("./module2");
}).toThrowError();
});