From 3e11e63f6d917537214d2488f884bcdda1dd5151 Mon Sep 17 00:00:00 2001 From: Bruno Dias Date: Tue, 22 Mar 2016 22:33:46 -0300 Subject: [PATCH 05/11] added mocha and should for testing. --- package.json | 8 ++++++-- tests/test.js | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 tests/test.js diff --git a/package.json b/package.json index 61c8263..8f2412f 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "manager for multiple selection.", "main": "bulk.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "mocha ./tests/test.js -w" }, "repository": { "type": "git", @@ -19,5 +19,9 @@ "bugs": { "url": "https://github.com/diasbruno/bulkjs/issues" }, - "homepage": "https://github.com/diasbruno/bulkjs#readme" + "homepage": "https://github.com/diasbruno/bulkjs#readme", + "devDependencies": { + "mocha": "^2.4.5", + "should": "^8.2.2" + } } diff --git a/tests/test.js b/tests/test.js new file mode 100644 index 0000000..831b8b6 --- /dev/null +++ b/tests/test.js @@ -0,0 +1 @@ +var Bulk = require('../bulk.js'); -- 2.6.4