about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorAlan Pearce2017-07-01 13:30:57 +0200
committerAlan Pearce2017-07-01 13:30:57 +0200
commitab3c5ffb57980359a186936aa6fc2894f58eb625 (patch)
tree1901135c0419fe1e70a7ab86fde330f5f8bc9a23 /test
parente4e26ceca7bfe60185082748c54f7ccd30746350 (diff)
downloadhomestead-ab3c5ffb57980359a186936aa6fc2894f58eb625.tar.lz
homestead-ab3c5ffb57980359a186936aa6fc2894f58eb625.tar.zst
homestead-ab3c5ffb57980359a186936aa6fc2894f58eb625.zip
feat(taxon): Show taxonomy term in title
Diffstat (limited to 'test')
-rw-r--r--test/app.test.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/app.test.js b/test/app.test.js
index 3cffaf5..92a7a76 100644
--- a/test/app.test.js
+++ b/test/app.test.js
@@ -89,8 +89,12 @@ test("tags", t => {
   return request(app.listen())
     .get("/tag/a")
     .expect(200)
-    .expect(/This is a test/)
-    .then(() => t.pass());
+    .expect(/^<!DOCTYPE html>/)
+    .then(parseResponse)
+    .then($ => {
+      t.is($("head > title").text(), "A ยท John Doe");
+      t.is($(".post a").text(), "This is a test");
+    });
 });
 
 test("tags not found", t =>