From 9cfea5f86c49b13baa2c3364eccb136da4650f88 Mon Sep 17 00:00:00 2001 From: nicco Date: Thu, 24 Aug 2017 18:33:14 +0200 Subject: [PATCH] Testing & Version Bump --- package.json | 10 ++++++++-- test/all.js | 8 ++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 test/all.js 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