all repos — archive/homestead @ b0b4517c1329595f9525bcc9e9e176dc5b43f575

My future indieweb platform

test: Ensure pages are utf-8 HTML

Alan Pearce
commit

b0b4517c1329595f9525bcc9e9e176dc5b43f575

parent

31eda3eb3150c35b469ba193db227e0467653081

1 file changed, 3 insertions(+), 0 deletions(-)

changed files
M test/app.test.jstest/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($ => {