Skip to content

Commit 60824f1

Browse files
authored
Merge pull request webpack#4958 from webpack/ci/test-timeout
add timeout and code style
2 parents bfc6106 + 6a90187 commit 60824f1

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

test/WatcherEvents.test.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ const createMultiCompiler = () => {
2626
}]);
2727
};
2828

29-
describe("WatchEvents", () => {
29+
describe("WatcherEvents", function() {
30+
this.timeout(10000);
3031

3132
it("should emit 'watch-close' when using single-compiler mode and the compiler is not running", function(done) {
3233
let called = false;
@@ -37,11 +38,11 @@ describe("WatchEvents", () => {
3738
done(err);
3839
});
3940

40-
compiler.plugin('watch-close', () => {
41-
called = true
41+
compiler.plugin("watch-close", () => {
42+
called = true;
4243
});
4344

44-
compiler.plugin('done', () => {
45+
compiler.plugin("done", () => {
4546
watcher.close();
4647
});
4748

@@ -56,11 +57,11 @@ describe("WatchEvents", () => {
5657
done(err);
5758
});
5859

59-
compiler.plugin('watch-close', () => {
60-
called = true
60+
compiler.plugin("watch-close", () => {
61+
called = true;
6162
});
6263

63-
compiler.plugin('done', () => {
64+
compiler.plugin("done", () => {
6465
watcher.close();
6566
});
6667

0 commit comments

Comments
 (0)