all repos — archive/homestead @ cff6bcc31d59ce9957567cc05c1ed7e364fb40ca

My future indieweb platform

Add rel=me links

Alan Pearce
commit

cff6bcc31d59ce9957567cc05c1ed7e364fb40ca

parent

d01f2aa860b0d5f10dc8e143c4b1b9d420fc8fe0

1 file changed, 9 insertions(+), 4 deletions(-)

changed files
M test/app.test.jstest/app.test.js
@@ -47,6 +47,11 @@ 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"); + 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 @@ t.deepEqual(count, {
"h-card": 1, "h-feed": 1, "h-entry": 1, - rels: 1 + rels: 3 }); const data = await mf.getAsync(options);
@@ -86,7 +91,7 @@ t.deepEqual(count, {
"h-card": 1, "h-feed": 1, "h-entry": 1, - rels: 1 + rels: 3 }); const data = await mf.getAsync(options);
@@ -117,7 +122,7 @@
t.deepEqual(count, { "h-card": 1, "h-entry": 1, - rels: 1 + rels: 3 }); const data = await mf.getAsync(options);
@@ -147,7 +152,7 @@ t.deepEqual(count, {
"h-card": 1, "h-feed": 1, "h-entry": 1, - rels: 1 + rels: 3 }); const data = await mf.getAsync(options);