diff --git a/package.json b/package.json index d8b84a4f6579eb1adb4163d48b4f746078550cdf..f7fd9f495d0a147607cf672c58c02940e4e72341 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "private": true, "scripts": { "start": "nodemon server.js || node server.js", - "configure": "node generateData.js" + "configure": "node generateData.js", + "test": "mocha" }, "dependencies": { "body-parser": "^1.13.1", @@ -22,5 +23,9 @@ "nconf": "^0.6.x", "winston": "^2.2.0" }, - "license": "MIT" + "license": "MIT", + "devDependencies": { + "chai": "^3.5.0", + "mocha": "^2.5.3" + } } diff --git a/test/test.js b/test/test.js new file mode 100644 index 0000000000000000000000000000000000000000..f05951f4a920193b51a817459bbd69da678a3015 --- /dev/null +++ b/test/test.js @@ -0,0 +1,9 @@ +var assert = require('chai').assert; +var expect = require('chai').expect; +var should = require('chai').should() //actually call the function + +var foo = 'bar'; + +it('doesn\'t do anything', function(){ + assert.typeOf(foo, 'string', 'foo is a string'); +});