From 8a6d44ae75e5417b366b5591747ba4dde0da4429 Mon Sep 17 00:00:00 2001 From: dead-horse Date: Mon, 13 Feb 2017 18:24:04 +0800 Subject: [PATCH] f --- app/middleware/notfound.js | 2 +- test/app/middleware/notfound.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/middleware/notfound.js b/app/middleware/notfound.js index 610be11d79..10d2736f5f 100644 --- a/app/middleware/notfound.js +++ b/app/middleware/notfound.js @@ -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}

config.notfound.pageUrl(${options.pageUrl}) is unimplemented

`; return; } diff --git a/test/app/middleware/notfound.test.js b/test/app/middleware/notfound.test.js index 519a0e99c9..b4297a7ecb 100644 --- a/test/app/middleware/notfound.test.js +++ b/test/app/middleware/notfound.test.js @@ -84,7 +84,7 @@ describe('test/app/middleware/notfound.test.js', () => { yield request(app.callback()) .get('/notfound') - .expect('

404 Not Found

config.notfound.pageUrl(/notfound) is unimplemented') + .expect('

404 Not Found

config.notfound.pageUrl(/notfound) is unimplemented

') .expect(404); }); });