fix(Responders): fix incorrect post URLs
1 file changed, 2 insertions(+), 0 deletions(-)
changed files
M test/app.test.js โ test/app.test.js
@@ -33,6 +33,7 @@ t.is($("head > title").text(), "John Doe"); t.is($("h1").text(), "John Doe"); t.is($("main").length, 1); t.is($("main .posts").length, 1); + t.is($(".post:first-of-type a").attr("href"), "/post/testfile"); return $; }) .then(toMicroformatsOptions)@@ -94,6 +95,7 @@ .then(parseResponse) .then($ => { t.is($("head > title").text(), "A ยท John Doe"); t.is($(".post a").text(), "This is a test"); + t.is($(".post:first-of-type a").attr("href"), "/post/testfile"); }); });