Skip to content

Commit

Permalink
add timeout and code style
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed May 29, 2017
1 parent bfc6106 commit 6a90187
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions test/WatcherEvents.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ const createMultiCompiler = () => {
}]);
};

describe("WatchEvents", () => {
describe("WatcherEvents", function() {
this.timeout(10000);

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

compiler.plugin('watch-close', () => {
called = true
compiler.plugin("watch-close", () => {
called = true;
});

compiler.plugin('done', () => {
compiler.plugin("done", () => {
watcher.close();
});

Expand All @@ -56,11 +57,11 @@ describe("WatchEvents", () => {
done(err);
});

compiler.plugin('watch-close', () => {
called = true
compiler.plugin("watch-close", () => {
called = true;
});

compiler.plugin('done', () => {
compiler.plugin("done", () => {
watcher.close();
});

Expand Down

0 comments on commit 6a90187

Please sign in to comment.