From cff6bcc31d59ce9957567cc05c1ed7e364fb40ca Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 5 Jul 2017 22:15:03 +0200 Subject: Add rel=me links --- test/app.test.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'test/app.test.js') 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
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); -- cgit 1.4.1