]> git.proxmox.com Git - mirror_novnc.git/commitdiff
slip in PATH for 'npm test' as not everyone has karma
authorAlexander Clouter <alex@digriz.org.uk>
Sat, 22 Nov 2014 10:20:51 +0000 (10:20 +0000)
committerAlexander Clouter <alex@digriz.org.uk>
Thu, 4 Dec 2014 21:18:16 +0000 (21:18 +0000)
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
----

package.json

index 63c26662172192d52069e1c07b90556e2ca0aca5..81a2eddf3b94178d6d187b3a50808ba60079dbd7 100644 (file)
@@ -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",