From 0b907a3efa0ac8879bbed20a106c2616147563ba Mon Sep 17 00:00:00 2001 From: jdalton Date: Wed, 22 Apr 2015 20:16:43 -0700 Subject: [PATCH] Make tests work in Phantom 2. --- test/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test.js b/test/test.js index 10ceb8068..83df6c3bc 100644 --- a/test/test.js +++ b/test/test.js @@ -80,7 +80,7 @@ result = []; if (phantom) { - result = params = phantom.args; + result = params = phantom.args || require('system').args; } else if (system) { min = 1; result = params = system.args;