diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/app.test.js | 2 | ||||
-rw-r--r-- | test/testsite/config.toml | 6 |
2 files changed, 7 insertions, 1 deletions
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 <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); diff --git a/test/testsite/config.toml b/test/testsite/config.toml index 1fbbb82..8f82937 100644 --- a/test/testsite/config.toml +++ b/test/testsite/config.toml @@ -1,2 +1,6 @@ [posts] -folder = "./posts" \ No newline at end of file +folder = "./posts" + +[[site.nav]] +text = "Home" +url = "/" \ No newline at end of file |