Comparing version 0.11.0-rc3 to 0.11.0-rc4
@@ -138,2 +138,3 @@ const assert = require('assert'); | ||
let params = {}; | ||
let handler = matchRoute.apply(this, [ method, path, params ]); | ||
@@ -140,0 +141,0 @@ |
{ | ||
"name": "nodecaf", | ||
"version": "0.11.0-rc3", | ||
"version": "0.11.0-rc4", | ||
"description": "Nodecaf is a light framework for developing RESTful Apps in a quick and convenient manner.", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
@@ -321,2 +321,3 @@ const assert = require('assert'); | ||
let app = new Nodecaf({ | ||
conf: { port: 80 }, | ||
api({ all }){ | ||
@@ -330,4 +331,4 @@ all(({ res, params }) => { | ||
await app.start(); | ||
(await base.get('foo/bar')).assert.status.is(200); | ||
(await base.post('bah/baz')).assert.status.is(200); | ||
assert.strictEqual((await app.trigger('post', '/foo/bar')).status, 200); | ||
assert.strictEqual((await app.trigger('get', '/foo/baz')).status, 200); | ||
await app.stop(); | ||
@@ -334,0 +335,0 @@ }); |
86439
1306