diff --git a/package.json b/package.json index 7baf3e06eb..93c8319518 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "bower-canary": "latest", "mocha-phantomjs": ">=2.0 <3.0", "recess": ">=1.1.0 <1.1.7", - "uglify-js": "latest" + "uglify-js": "latest", + "phantomjs": "latest" } } diff --git a/tests/js/run.sh b/tests/js/run.sh index c3544c3a2a..0a2b8dc535 100755 --- a/tests/js/run.sh +++ b/tests/js/run.sh @@ -5,15 +5,11 @@ ROOTDIR="$BASEDIR/../.." PHANTOMJS_BIN="" MOCHA_PHANTOMJS_BIN="" -if type "phantomjs" > /dev/null; then - PHANTOMJS_BIN="phantomjs" -elif type "$ROOTDIR/node_modules/.bin/phantomjs" > /dev/null; then +if type "$ROOTDIR/node_modules/.bin/phantomjs" > /dev/null; then PHANTOMJS_BIN="$ROOTDIR/node_modules/.bin/phantomjs" fi -if type "mocha-phantomjs" > /dev/null; then - MOCHA_PHANTOMJS_BIN="mocha-phantomjs" -elif type "$ROOTDIR/node_modules/.bin/mocha-phantomjs" > /dev/null; then +if type "$ROOTDIR/node_modules/.bin/mocha-phantomjs" > /dev/null; then MOCHA_PHANTOMJS_BIN="$ROOTDIR/node_modules/.bin/mocha-phantomjs" fi