]> git.immae.eu Git - perso/Immae/Projets/Nodejs/Surfer.git/commitdiff
make tests work with npm test
authorJohannes Zellner <johannes@nebulon.de>
Thu, 3 Mar 2016 09:54:18 +0000 (10:54 +0100)
committerJohannes Zellner <johannes@nebulon.de>
Thu, 3 Mar 2016 09:54:18 +0000 (10:54 +0100)
package.json

index 2f2e7e06649d9ece2842c38e5e6f57568d82871a..c9ce1e436642aca33a8580ab555a4987e329514e 100644 (file)
@@ -4,7 +4,7 @@
   "description": "Simple file server",
   "main": "app.js",
   "scripts": {
-    "test": "echo \"Error: no test specified\" && exit 1"
+    "test": "./node_modules/mocha/bin/_mocha -R spec ./test"
   },
   "keywords": [
     "file",
     "superagent": "^1.7.2",
     "underscore": "^1.8.3"
   },
-  "devDependencies": {}
+  "devDependencies": {
+    "expect.js": "^0.3.1",
+    "mocha": "^2.4.5",
+    "selenium-server-standalone-jar": "^2.52.0",
+    "selenium-webdriver": "^2.52.0"
+  },
+  "scripts": {
+    "test": "./node_modules/mocha/bin/_mocha -R spec ./test/test.js"
+  }
 }