forked from webpack/webpack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodule.js
More file actions
19 lines (15 loc) · 743 Bytes
/
module.js
File metadata and controls
19 lines (15 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import value1 from "./a";
it("should have the expected static path defined", function() {
expect(DEFINE_PATH).toBe('./a');
});
it("should hot.accept the module located at the static file path without breaking the compiler", function() {
module.hot.accept("./a");
expect(value1).toBe(1);
});
it("should hot.accept the module located at the defined file path without breaking the compiler, when one argument is passed to hot.accept", function() {
module.hot.accept(DEFINE_PATH);
});
it("should hot.accept the module located at the defined file path without breaking the compiler, when multiple arguments are passed to hot.accept", function(done) {
module.hot.accept(DEFINE_PATH, () => done());
NEXT(require("../../update")(done));
});