From a67e38d1a82c95db5bd24183e81b31438f60dd2c Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 2 Jul 2017 16:22:35 +0200 Subject: feat: add configurable navigation --- test/app.test.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/app.test.js') diff --git a/test/app.test.js b/test/app.test.js index dfba9f8..2445493 100644 --- a/test/app.test.js +++ b/test/app.test.js @@ -43,6 +43,8 @@ test("homepage", async function(t) { t.is($("head > title").text(), "John Doe", "head title is site author"); t.is($("main").length, 1, "only one
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); -- cgit 1.4.1