summary refs log tree commit diff stats
path: root/test/app.test.js
diff options
context:
space:
mode:
authorAlan Pearce2017-07-02 16:22:35 +0200
committerAlan Pearce2017-07-02 16:22:35 +0200
commita67e38d1a82c95db5bd24183e81b31438f60dd2c (patch)
tree1773ff844074db76b82b31723b31d6c5006a7f01 /test/app.test.js
parent550562ec8b147439689bb3d4abdc406ace54a7db (diff)
downloadhomestead-a67e38d1a82c95db5bd24183e81b31438f60dd2c.tar.lz
homestead-a67e38d1a82c95db5bd24183e81b31438f60dd2c.tar.zst
homestead-a67e38d1a82c95db5bd24183e81b31438f60dd2c.zip
feat: add configurable navigation
Diffstat (limited to 'test/app.test.js')
-rw-r--r--test/app.test.js2
1 files changed, 2 insertions, 0 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);