Skip to content
Browse files

Use npm 1.0.x, yui3-bare ~0.6.2.

  • Loading branch information...
1 parent 511d609 commit 10a895f88999036450791bbd485be65c915ea6de @reid committed Jul 6, 2011
Showing with 4 additions and 5 deletions.
  1. +4 −5 script/test.sh
View
9 script/test.sh
@@ -1,13 +1,12 @@
#!/bin/sh
testdir="test"
-vows=`which vows 2>&1`
-ret=$?
-if [ $ret -ne 0 ] || ! [ -x $vows ]; then
+vows="./node_modules/vows/bin/vows"
+[ ! -d $testdir ] && cd ..
+if ! [ -x $vows ]; then
echo "Unable to run Vows." >&2
echo "Try \`make install-dev\` to install Vows." >&2
exit $ret
fi
-[ ! -d $testdir ] && cd ..
[ ! -e $testdir ] && \
echo "Unable to find directory '$testdir'." >&2 && exit 1
-vows $@ $testdir/*.js
+$vows $@ $testdir/*.js

0 comments on commit 10a895f

Please sign in to comment.
Something went wrong with that request. Please try again.