removed remaingin 'test' arg when calling '$ casperjs test [path]'
Showing
1 changed file
with
1 additions
and
0 deletions
... | @@ -276,6 +276,7 @@ if (!!phantom.casperArgs.options.version) { | ... | @@ -276,6 +276,7 @@ if (!!phantom.casperArgs.options.version) { |
276 | phantom.exit(0); | 276 | phantom.exit(0); |
277 | } else if (phantom.casperArgs.get(0) === "test") { | 277 | } else if (phantom.casperArgs.get(0) === "test") { |
278 | phantom.casperScript = fs.absolute(fs.pathJoin(phantom.casperPath, 'tests', 'run.js')); | 278 | phantom.casperScript = fs.absolute(fs.pathJoin(phantom.casperPath, 'tests', 'run.js')); |
279 | phantom.casperArgs.drop("test"); | ||
279 | } else if (phantom.casperArgs.args.length === 0 || !!phantom.casperArgs.options.help) { | 280 | } else if (phantom.casperArgs.args.length === 0 || !!phantom.casperArgs.options.help) { |
280 | var phantomVersion = [phantom.version.major, phantom.version.minor, phantom.version.patch].join('.'); | 281 | var phantomVersion = [phantom.version.major, phantom.version.minor, phantom.version.patch].join('.'); |
281 | var f = require("utils").format; | 282 | var f = require("utils").format; | ... | ... |
-
Please register or sign in to post a comment