diff options
author | Alan Pearce | 2017-07-01 13:53:50 +0200 |
---|---|---|
committer | Alan Pearce | 2017-07-01 13:53:50 +0200 |
commit | b0b4517c1329595f9525bcc9e9e176dc5b43f575 (patch) | |
tree | cc2e68d0d9afb86a0505056131e1abc6194054c5 /test | |
parent | 31eda3eb3150c35b469ba193db227e0467653081 (diff) | |
download | homestead-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.js | 3 |
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($ => { |