Testing & Version Bump

This commit is contained in:
nicco 2017-08-24 18:33:14 +02:00
parent 2705b4848b
commit 9cfea5f86c
2 changed files with 16 additions and 2 deletions

View File

@ -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"
}
}

8
test/all.js Normal file
View File

@ -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));
});
});
});