Skip to content

Commit

Permalink
Some changes to try to get the unit tests working with PhantomJS 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkinson committed Feb 4, 2015
1 parent 9f517e5 commit 62feff9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// failing right now ...
//
// ~~ (c) SRW, 28 Nov 2012
// ~~ last updated 02 Dec 2014
// ~~ last updated 03 Feb 2015

(function () {
'use strict';
Expand Down Expand Up @@ -52,7 +52,13 @@
return;
};

mothership = phantom.args[0];
mothership = (function () {
// Unfortunately, we have to do some version detection here. Ugh.
if (phantom.args instanceof Object) {
return phantom.args[0];
}
return require('system').args[0];
}());

queue = [];

Expand Down

0 comments on commit 62feff9

Please sign in to comment.