summary refs log tree commit diff stats
path: root/test/app.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/app.test.js')
-rw-r--r--test/app.test.js13
1 files changed, 9 insertions, 4 deletions
diff --git a/test/app.test.js b/test/app.test.js
index 1f8e72f..f0ab3da 100644
--- a/test/app.test.js
+++ b/test/app.test.js
@@ -47,6 +47,11 @@ test("homepage", async function(t) {
   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");
+  t.is(
+    $("a[rel=me]").length,
+    2,
+    "renders author.contact config to rel=me links"
+  );
 
   const options = toMicroformatsOptions($);
   const count = await mf.countAsync(options);
@@ -55,7 +60,7 @@ test("homepage", async function(t) {
     "h-card": 1,
     "h-feed": 1,
     "h-entry": 1,
-    rels: 1
+    rels: 3
   });
 
   const data = await mf.getAsync(options);
@@ -86,7 +91,7 @@ test("posts", async function(t) {
     "h-card": 1,
     "h-feed": 1,
     "h-entry": 1,
-    rels: 1
+    rels: 3
   });
 
   const data = await mf.getAsync(options);
@@ -117,7 +122,7 @@ test("post", async function(t) {
   t.deepEqual(count, {
     "h-card": 1,
     "h-entry": 1,
-    rels: 1
+    rels: 3
   });
 
   const data = await mf.getAsync(options);
@@ -147,7 +152,7 @@ test("tags", async function(t) {
     "h-card": 1,
     "h-feed": 1,
     "h-entry": 1,
-    rels: 1
+    rels: 3
   });
 
   const data = await mf.getAsync(options);