« get me outta code hell

test: use "native" slots shorthand instead of postprocess - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/test/snapshot/generateAdditionalFilesList.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-06-13 12:37:18 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-06-13 12:37:18 -0300
commit2ce5ddd844603b1c3d8f220a12603677104b7545 (patch)
tree1e3dc0183cd86c8dfc7e83336af7ae61e874bf04 /test/snapshot/generateAdditionalFilesList.js
parentf8d1e6ee6e27e5539d50191b94a79d1fcb797939 (diff)
test: use "native" slots shorthand instead of postprocess
Diffstat (limited to 'test/snapshot/generateAdditionalFilesList.js')
-rw-r--r--test/snapshot/generateAdditionalFilesList.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/snapshot/generateAdditionalFilesList.js b/test/snapshot/generateAdditionalFilesList.js
index 0c27ad19..60b46ae8 100644
--- a/test/snapshot/generateAdditionalFilesList.js
+++ b/test/snapshot/generateAdditionalFilesList.js
@@ -41,16 +41,16 @@ testContentFunctions(t, 'generateAdditionalFilesList (snapshot)', async (t, eval
         },
       ],
     ],
-    postprocess: template => template
-      .slot('fileLinks', {
+    slots: {
+      fileLinks: {
         'sburbwp_1280x1024.jpg': 'link to 1280x1024',
         'sburbwp_1440x900.jpg': 'link to 1440x900',
         'sburbwp_1920x1080.jpg': null,
         'Homestuck_Vol4_alt1.jpg': 'link to alt1',
         'Homestuck_Vol4_alt2.jpg': null,
         'Homestuck_Vol4_alt3.jpg': 'link to alt3',
-      })
-      .slot('fileSizes', {
+      },
+      fileSizes: {
         'sburbwp_1280x1024.jpg': 2500,
         'sburbwp_1440x900.jpg': null,
         'sburbwp_1920x1080.jpg': null,
@@ -58,6 +58,7 @@ testContentFunctions(t, 'generateAdditionalFilesList (snapshot)', async (t, eval
         'Homestuck_Vol4_alt1.jpg': 1234567,
         'Homestuck_Vol4_alt2.jpg': 1234567,
         'Homestuck_Vol4_alt3.jpg': 1234567,
-      }),
+      }
+    },
   });
 });