slip in PATH for 'npm test' as not everyone has karma

So people can follow the 'unit tests' instructions, we need
to make sure PATH includes the karma bin directory otherwise
we see the following:
----
aclouter@stevemcqueen:/usr/src/aten-ikvm/noVNC$ npm test

> noVNC@0.5.0 test /usr/src/aten-ikvm/noVNC
> karma start karma.conf.js

sh: 1: karma: not found
npm ERR! Test failed.  See above for more details.
npm ERR! not ok code 0
----
This commit is contained in:
Alexander Clouter 2014-11-22 10:20:51 +00:00
parent fc00821eba
commit dc4b6301c8
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@
"test": "tests" "test": "tests"
}, },
"scripts": { "scripts": {
"test": "karma start karma.conf.js" "test": "PATH=$PATH:node_modules/karma/bin karma start karma.conf.js"
}, },
"repository": { "repository": {
"type": "git", "type": "git",