« get me outta code hell

content: linkTemplate: display message when content missing - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/test
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-08-08 20:53:56 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-08-08 20:53:56 -0300
commit063d985d6ac4da4547e335a9c8740a1ec9f21570 (patch)
treec9291ca0bb39238646b573dec47d54772e4878b8 /test
parent31a15f783f915811990cefb90fe1661293c49f3d (diff)
content: linkTemplate: display message when content missing
Diffstat (limited to 'test')
-rw-r--r--test/snapshot/linkTemplate.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/snapshot/linkTemplate.js b/test/snapshot/linkTemplate.js
index 1db4582e..83d77108 100644
--- a/test/snapshot/linkTemplate.js
+++ b/test/snapshot/linkTemplate.js
@@ -30,6 +30,7 @@ testContentFunctions(t, 'linkTemplate (snapshot)', async (t, evaluate) => {
 
     slots: {
       path: ['myCoolPath', 'ham', 'pineapple', 'tomato'],
+      content: 'delish',
     },
   });
 
@@ -41,6 +42,12 @@ testContentFunctions(t, 'linkTemplate (snapshot)', async (t, evaluate) => {
         'homestuck-vol-1',
         'Showtime (Piano Refrain) - #xXxAwesomeSheetMusick?rxXx#.pdf',
       ],
+      content: `Damn, that's some good sheet music`,
     },
   });
+
+  evaluate.snapshot('missing content', {
+    name: 'linkTemplate',
+    slots: {href: 'banana'},
+  });
 });