mirror of https://github.com/webpack/webpack.git
21 lines
366 B
JavaScript
21 lines
366 B
JavaScript
import a from "./a";
|
|
|
|
it("should abort when module is not accepted", (done) => {
|
|
expect(a).toBe(1);
|
|
NEXT(require("../../update")(done, {
|
|
ignoreErrored: true
|
|
}, () => {
|
|
expect(a).toBe(1);
|
|
NEXT(require("../../update")(done, {
|
|
ignoreErrored: true
|
|
}, () => {
|
|
expect(a).toBe(3);
|
|
done();
|
|
}));
|
|
}));
|
|
});
|
|
|
|
if(module.hot) {
|
|
module.hot.accept("./a");
|
|
}
|