From: Johannes Zellner Date: Thu, 3 Mar 2016 09:54:18 +0000 (+0100) Subject: make tests work with npm test X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=f6edb78513bc1f2410a0890c42f3edd3fd34b84d;p=perso%2FImmae%2FProjets%2FNodejs%2FSurfer.git make tests work with npm test --- diff --git a/package.json b/package.json index 2f2e7e0..c9ce1e4 100644 --- a/package.json +++ b/package.json @@ -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", @@ -43,5 +43,13 @@ "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" + } }