webpack/test/cases/parsing/hot-api/index.js

15 lines
353 B
JavaScript
Raw Permalink Normal View History

2015-04-29 05:51:17 +08:00
if(module.hot) {
2018-03-22 17:54:18 +08:00
it("should run module.hot.accept(…)", function() {
2015-04-29 05:51:17 +08:00
module.hot.accept("./a", function() {});
});
it("should run module.hot.accept()", function() {
module.hot.accept();
});
it("should run module.hot.decline", function() {
module.hot.decline("./b");
});
} else {
it("should run module.hot.* (disabled)", function() {
});
}