Skip to content

Commit

Permalink
phantomjs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Jun 14, 2017
1 parent 31a8acf commit 1fe4b74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/unit/runnable.spec.js
Expand Up @@ -361,7 +361,7 @@ describe('Runnable(title, fn)', function () {
setTimeout(increment, 1);
setTimeout(increment, 100);
});
test.timeout(10);
test.timeout(50);
test.run(function (err) {
expect(err).to.be.ok();
expect(callCount).to.equal(1);
Expand Down
5 changes: 4 additions & 1 deletion test/unit/runner.spec.js
Expand Up @@ -125,8 +125,11 @@ describe('Runner', function () {
});

it('should not fail when a new common global is introduced', function () {
if (process.browser) {
this.skip();
return;
}
// verify that the prop isn't enumerable
delete global.XMLHttpRequest;
expect(global.propertyIsEnumerable('XMLHttpRequest')).to.not.be.ok();

// create a new runner and keep a reference to the test.
Expand Down

0 comments on commit 1fe4b74

Please sign in to comment.