Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
dead-horse committed Feb 13, 2017
1 parent a0b9564 commit 8a6d44a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/middleware/notfound.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = options => {

// notfound handler is unimplemented
if (options.pageUrl && this.path === options.pageUrl) {
this.body = `${notFoundHtml}config.notfound.pageUrl(${options.pageUrl}) is unimplemented`;
this.body = `${notFoundHtml}<p>config.notfound.pageUrl(${options.pageUrl}) is unimplemented</p>`;
return;
}

Expand Down
2 changes: 1 addition & 1 deletion test/app/middleware/notfound.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ describe('test/app/middleware/notfound.test.js', () => {

yield request(app.callback())
.get('/notfound')
.expect('<h1>404 Not Found</h1>config.notfound.pageUrl(/notfound) is unimplemented')
.expect('<h1>404 Not Found</h1><p>config.notfound.pageUrl(/notfound) is unimplemented</p>')
.expect(404);
});
});
Expand Down

0 comments on commit 8a6d44a

Please sign in to comment.