diff options
author | Alexander Clouter <alex@digriz.org.uk> | 2014-11-22 10:20:51 +0000 |
---|---|---|
committer | Alexander Clouter <alex@digriz.org.uk> | 2014-12-04 21:18:16 +0000 |
commit | dc4b6301c810bd82f4d00c2032ac6775973a4edb (patch) | |
tree | 9ced5ecf1fb1ab2c99ac884aec161fb446495d52 /package.json | |
parent | fc00821eba469641c6c94706726c3d78e46460a2 (diff) | |
download | novnc-dc4b6301c810bd82f4d00c2032ac6775973a4edb.tar.gz |
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
----
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package.json b/package.json index 63c2666..81a2edd 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "test": "tests" }, "scripts": { - "test": "karma start karma.conf.js" + "test": "PATH=$PATH:node_modules/karma/bin karma start karma.conf.js" }, "repository": { "type": "git", |