all repos โ€” archive/homestead @ ab3c5ffb57980359a186936aa6fc2894f58eb625

My future indieweb platform

feat(taxon): Show taxonomy term in title

Alan Pearce
commit

ab3c5ffb57980359a186936aa6fc2894f58eb625

parent

e4e26ceca7bfe60185082748c54f7ccd30746350

1 file changed, 6 insertions(+), 2 deletions(-)

changed files
M test/app.test.js โ†’ 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 =>