all repos — archive/homestead @ a67e38d1a82c95db5bd24183e81b31438f60dd2c

My future indieweb platform

feat: add configurable navigation

Alan Pearce
commit

a67e38d1a82c95db5bd24183e81b31438f60dd2c

parent

550562ec8b147439689bb3d4abdc406ace54a7db

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

changed files
M test/app.test.jstest/app.test.js
@@ -43,6 +43,8 @@ const $ = parseResponse(res);
t.is($("head > title").text(), "John Doe", "head title is site author"); t.is($("main").length, 1, "only one <main> tag"); + t.is($("nav a").first().text(), "Home", "nav link has text"); + t.is($("nav a").first().attr("href"), "/", "nav links to homepage"); const options = toMicroformatsOptions($); const count = await mf.countAsync(options);