mirror of https://github.com/webpack/webpack.git
15 lines
221 B
JavaScript
15 lines
221 B
JavaScript
|
it("should compile and work", done => {
|
||
|
require.ensure(
|
||
|
["./foo"],
|
||
|
() => {
|
||
|
throw new Error("error");
|
||
|
},
|
||
|
() => {
|
||
|
import("./foo").then(m => {
|
||
|
expect(m.default).toBe("foo");
|
||
|
done();
|
||
|
});
|
||
|
}
|
||
|
);
|
||
|
});
|