Skip to content

Commit

Permalink
test for ZijianHegh-231
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromew committed Jan 28, 2016
1 parent 1112fdd commit 8f0c92d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/lib/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
Expand Down

0 comments on commit 8f0c92d

Please sign in to comment.