« get me outta code hell

Merge branch 'preview' into track-data-cleanup - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/test/snapshot/generateCoverArtwork.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-09-05 21:03:16 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-09-05 21:03:16 -0300
commit044ac1a804e0f42aaa13a9280ba68effc7a65606 (patch)
treecd6df28a76822c46cac9976781014edc98c8d41a /test/snapshot/generateCoverArtwork.js
parenta3b80f08fc54cda6a6787bcd078059823026add6 (diff)
parent0ff743b1350b1d42ba23d9701a0b7acfb7501254 (diff)
Merge branch 'preview' into track-data-cleanup
Diffstat (limited to 'test/snapshot/generateCoverArtwork.js')
-rw-r--r--test/snapshot/generateCoverArtwork.js12
1 files changed, 5 insertions, 7 deletions
diff --git a/test/snapshot/generateCoverArtwork.js b/test/snapshot/generateCoverArtwork.js
index 21c91454..e35dd8d0 100644
--- a/test/snapshot/generateCoverArtwork.js
+++ b/test/snapshot/generateCoverArtwork.js
@@ -2,11 +2,11 @@ import t from 'tap';
 import {testContentFunctions} from '#test-lib';
 
 testContentFunctions(t, 'generateCoverArtwork (snapshot)', async (t, evaluate) => {
-  await evaluate.load();
-
-  const extraDependencies = {
-    getSizeOfImageFile: () => 0,
-  };
+  await evaluate.load({
+    mock: {
+      image: evaluate.stubContentFunction('image', {mock: true}),
+    },
+  });
 
   const artTags = [
     {name: 'Damara', directory: 'damara', isContentWarning: false},
@@ -21,13 +21,11 @@ testContentFunctions(t, 'generateCoverArtwork (snapshot)', async (t, evaluate) =
     name: 'generateCoverArtwork',
     args: [artTags],
     slots: {path, mode: 'primary'},
-    extraDependencies,
   });
 
   evaluate.snapshot('display: thumbnail', {
     name: 'generateCoverArtwork',
     args: [artTags],
     slots: {path, mode: 'thumbnail'},
-    extraDependencies,
   });
 });