about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorAlan Pearce2017-07-01 13:33:48 +0200
committerAlan Pearce2017-07-01 13:33:48 +0200
commit6fd0c4b95eb82e5c60b3740dabcfe4590fe78d82 (patch)
treed428d234cc224ff12fd6a59d41ff806391917beb /test
parentab3c5ffb57980359a186936aa6fc2894f58eb625 (diff)
downloadhomestead-6fd0c4b95eb82e5c60b3740dabcfe4590fe78d82.tar.lz
homestead-6fd0c4b95eb82e5c60b3740dabcfe4590fe78d82.tar.zst
homestead-6fd0c4b95eb82e5c60b3740dabcfe4590fe78d82.zip
fix(Responders): fix incorrect post URLs
Diffstat (limited to 'test')
-rw-r--r--test/app.test.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/app.test.js b/test/app.test.js
index 92a7a76..d298a03 100644
--- a/test/app.test.js
+++ b/test/app.test.js
@@ -33,6 +33,7 @@ test("homepage", t => {
       t.is($("h1").text(), "John Doe");
       t.is($("main").length, 1);
       t.is($("main .posts").length, 1);
+      t.is($(".post:first-of-type a").attr("href"), "/post/testfile");
       return $;
     })
     .then(toMicroformatsOptions)
@@ -94,6 +95,7 @@ test("tags", t => {
     .then($ => {
       t.is($("head > title").text(), "A ยท John Doe");
       t.is($(".post a").text(), "This is a test");
+      t.is($(".post:first-of-type a").attr("href"), "/post/testfile");
     });
 });