diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/app.test.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/app.test.js b/test/app.test.js index 8507c41..4c90881 100644 --- a/test/app.test.js +++ b/test/app.test.js @@ -18,6 +18,7 @@ test("homepage", t => { return request(app.listen()) .get("/") .expect(200) + .expect(/^<!DOCTYPE html>/) .then(parseResponse) .then($ => { t.is($("head > title").text(), config.site.title); @@ -30,6 +31,7 @@ test("post", t => { return request(app.listen()) .get("/post/testfile") .expect(200) + .expect(/^<!DOCTYPE html>/) .then(parseResponse) .then($ => { t.is($("article h1").text(), "This is a test"); |