« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/test/snapshot/linkExternal.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/snapshot/linkExternal.js')
-rw-r--r--test/snapshot/linkExternal.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/snapshot/linkExternal.js b/test/snapshot/linkExternal.js
index a65044df..391d5a10 100644
--- a/test/snapshot/linkExternal.js
+++ b/test/snapshot/linkExternal.js
@@ -31,15 +31,16 @@ testContentFunctions(t, 'linkExternal (snapshot)', async (t, evaluate) => {
     ],
   });
 
-  evaluate.snapshot('custom matches - type: album', {
+  evaluate.snapshot('custom matches - album', {
     name: 'linkExternal',
     multiple: [
-      {args: ['https://youtu.be/abc', {type: 'album'}]},
-      {args: ['https://youtube.com/watch?v=abc', {type: 'album'}]},
-      {args: ['https://youtube.com/Playlist?list=kweh', {type: 'album'}]},
+      {args: ['https://youtu.be/abc']},
+      {args: ['https://youtube.com/watch?v=abc']},
+      {args: ['https://youtube.com/Playlist?list=kweh']},
     ],
-    postprocess:
-      link => link.slot('mode', 'album'),
+    slots: {
+      mode: 'album',
+    },
   });
 
   evaluate.snapshot('custom domains for common platforms', {