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

15 lines
353 B
JavaScript
Raw Normal View History

2015-04-29 05:51:17 +08:00
if(module.hot) {
it("should run module.hot.accept(...)", function() {
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() {
});
}