about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorAlan Pearce2017-07-01 13:53:50 +0200
committerAlan Pearce2017-07-01 13:53:50 +0200
commitb0b4517c1329595f9525bcc9e9e176dc5b43f575 (patch)
treecc2e68d0d9afb86a0505056131e1abc6194054c5 /test
parent31eda3eb3150c35b469ba193db227e0467653081 (diff)
downloadhomestead-b0b4517c1329595f9525bcc9e9e176dc5b43f575.tar.lz
homestead-b0b4517c1329595f9525bcc9e9e176dc5b43f575.tar.zst
homestead-b0b4517c1329595f9525bcc9e9e176dc5b43f575.zip
test: Ensure pages are utf-8 HTML
Diffstat (limited to 'test')
-rw-r--r--test/app.test.js3
1 files changed, 3 insertions, 0 deletions
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(/^<!DOCTYPE html>/)
     .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(/^<!DOCTYPE html>/)
     .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(/^<!DOCTYPE html>/)
     .then(parseResponse)
     .then($ => {