Skip to content

Commit

Permalink
- Fix compiler test as discussed in PR
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Truong authored and Kyle Truong committed Jul 7, 2017
1 parent 13bc80b commit 4266ab8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/Compiler.test.js
Expand Up @@ -298,14 +298,14 @@ describe("Compiler", () => {
}
});
});
// describe("static method", () => {
// it("should have an accessible static method, Watching", (done) => {
// const actual = Compiler.Watching(compiler, 1000, err => err);
// actual.running.should.be.exactly(true);
// actual.constructor.name.should.be.exactly("Watching");
// done();
// });
// });
describe("static method", () => {
it("should have an method, Watching", (done) => {
const actual = new Compiler.Watching(compiler, 1000, err => err);
actual.running.should.be.exactly(true);
actual.constructor.name.should.be.exactly("Watching");
done();
});
});
describe("constructor", () => {
it("constructs Watching.watchOptions correctly when passed a number, string, or object for watchOptions", (done) => {
const Watching1 = compiler.watch(1000, err => err);
Expand Down

0 comments on commit 4266ab8

Please sign in to comment.