diff --git a/package.json b/package.json index 101bc97..4fb3820 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,15 @@ { "name": "cca-koa-router", - "version": "0.1.5", + "version": "0.1.6", "description": "Koa Router", "main": "Router.js", "repository": { "type": "git", "url": "git+https://github.com/CupCakeArmy/koa-router.git" }, + "scripts": { + "test": "mocha" + }, "keywords": [ "Koa", "Router", @@ -18,5 +21,8 @@ "bugs": { "url": "https://github.com/CupCakeArmy/koa-router/issues" }, - "homepage": "https://github.com/CupCakeArmy/koa-router#readme" + "homepage": "https://github.com/CupCakeArmy/koa-router#readme", + "devDependencies": { + "mocha": "^3.5.0" + } } \ No newline at end of file diff --git a/test/all.js b/test/all.js new file mode 100644 index 0000000..6e749f9 --- /dev/null +++ b/test/all.js @@ -0,0 +1,8 @@ +var assert = require('assert'); +describe('Array', function () { + describe('#indexOf()', function () { + it('should return -1 when the value is not present', function () { + assert.equal(-1, [1, 2, 3].indexOf(4)); + }); + }); +}); \ No newline at end of file