about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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($ => {