From b0b4517c1329595f9525bcc9e9e176dc5b43f575 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 1 Jul 2017 13:53:50 +0200 Subject: test: Ensure pages are utf-8 HTML --- test/app.test.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test') diff --git a/test/app.test.js b/test/app.test.js index e0ddb87..f673247 100644 --- a/test/app.test.js +++ b/test/app.test.js @@ -26,6 +26,7 @@ test("homepage", t => { return request(app.listen()) .get("/") .expect(200) + .expect("Content-Type", "text/html; charset=utf-8") .expect(/^/) .then(parseResponse) .then($ => { @@ -68,6 +69,7 @@ test("post", t => { return request(app.listen()) .get("/post/testfile") .expect(200) + .expect("Content-Type", "text/html; charset=utf-8") .expect(/^/) .then(parseResponse) .then($ => { @@ -103,6 +105,7 @@ test("tags", t => { return request(app.listen()) .get("/tag/a") .expect(200) + .expect("Content-Type", "text/html; charset=utf-8") .expect(/^/) .then(parseResponse) .then($ => { -- cgit 1.4.1