gulp-jasmine-phantom
Advanced tools
Comparing version 1.3.1 to 1.3.2
13
index.js
@@ -9,2 +9,3 @@ 'use strict'; | ||
execFile = require('child_process').execFile, | ||
exec = require('child_process').execSync, | ||
requireUncached = require('require-uncached'); | ||
@@ -47,8 +48,8 @@ | ||
function hasGlobalPhantom() { | ||
execFile('phantomjs', [], function(error) { | ||
if(error) { | ||
return false; | ||
} | ||
return true; | ||
}); | ||
try { | ||
exec('which phantomjs'); | ||
} catch (e) { | ||
return false; | ||
} | ||
return true; | ||
} | ||
@@ -55,0 +56,0 @@ |
{ | ||
"name": "gulp-jasmine-phantom", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "Jasmine 2.0 suite runner, optionally with PhantomJS", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
504629
12880
3