about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorAlan Pearce2017-07-01 11:00:25 +0200
committerAlan Pearce2017-07-01 11:00:25 +0200
commit248c74916e22f397ff95944ac2596b9e40b302e5 (patch)
treea66fa1aeefd025a16b492b2b8c8cfed913b93c4d /test
parente5c2da0871ecbc92e2638dcf7dd4d15f12ddcff0 (diff)
downloadhomestead-248c74916e22f397ff95944ac2596b9e40b302e5.tar.lz
homestead-248c74916e22f397ff95944ac2596b9e40b302e5.tar.zst
homestead-248c74916e22f397ff95944ac2596b9e40b302e5.zip
feat: Add photo to marked-up h-chard
Diffstat (limited to 'test')
-rw-r--r--test/app.test.js4
-rw-r--r--test/testsite/static/johndoe.jpgbin0 -> 2133 bytes
2 files changed, 3 insertions, 1 deletions
diff --git a/test/app.test.js b/test/app.test.js
index 74aeac5..f3d8f07 100644
--- a/test/app.test.js
+++ b/test/app.test.js
@@ -46,7 +46,9 @@ test("homepage", t => {
           t.deepEqual(data.items, [
             {
               properties: {
-                name: ["John Doe"]
+                name: ["John Doe"],
+                url: ["/"],
+                photo: ["/static/johndoe.jpg"]
               },
               type: ["h-card"]
             }
diff --git a/test/testsite/static/johndoe.jpg b/test/testsite/static/johndoe.jpg
new file mode 100644
index 0000000..bc7b73d
--- /dev/null
+++ b/test/testsite/static/johndoe.jpg
Binary files differ