From ab3c5ffb57980359a186936aa6fc2894f58eb625 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 1 Jul 2017 13:30:57 +0200 Subject: feat(taxon): Show taxonomy term in title --- test/app.test.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'test/app.test.js') 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(/^/) + .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 => -- cgit 1.4.1