diff options
author | Alan Pearce | 2017-07-05 22:15:03 +0200 |
---|---|---|
committer | Alan Pearce | 2017-07-05 22:15:03 +0200 |
commit | cff6bcc31d59ce9957567cc05c1ed7e364fb40ca (patch) | |
tree | 7de5191c9308860b9e83a271be07e6d85a179f95 /test/app.test.js | |
parent | d01f2aa860b0d5f10dc8e143c4b1b9d420fc8fe0 (diff) | |
download | homestead-cff6bcc31d59ce9957567cc05c1ed7e364fb40ca.tar.lz homestead-cff6bcc31d59ce9957567cc05c1ed7e364fb40ca.tar.zst homestead-cff6bcc31d59ce9957567cc05c1ed7e364fb40ca.zip |
Add rel=me links
Diffstat (limited to 'test/app.test.js')
-rw-r--r-- | test/app.test.js | 13 |
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); |