Skip to content

Commit

Permalink
Add missing .catch() inside test
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnns committed Jan 27, 2016
1 parent 3d775e6 commit 52e5403
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/spawn.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,16 @@ describe("spawn(config?)", function () {
return expect(phridge.spawn({
"--load-images": "true",
"--webdriver": "localhost:" + port
})).to.be.rejectedWith("PhantomJS is launching GhostDriver...");
})).to.be.rejectedWith("GhostDriver");
})
.then(function () {
phridge.config.stdout = process.stdout;
phridge.config.stderr = process.stderr;

// Give phantomjs some time to exit
setTimeout(done, 100);
});
})
.catch(done);
}));

});

0 comments on commit 52e5403

Please sign in to comment.