diff --git a/test/lib/router.js b/test/lib/router.js index 6b8dded..98a6fe0 100644 --- a/test/lib/router.js +++ b/test/lib/router.js @@ -149,12 +149,15 @@ describe('Router', function() { router .get('user_page', '/user/(.*).jsx', function *(next) { this.body = { order: 1 }; + yield next; }) .all('app', '/app/(.*).jsx', function *(next) { this.body = { order: 2 }; + yield next; }) .all('view', '(.*).jsx', function *(next) { this.body = { order: 3 }; + yield next; }); request(http.createServer(app.use(router.routes()).callback()))