« get me outta code hell

don't test content functions - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/test/unit/content/dependencies/linkArtist.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2026-03-31 19:38:31 -0300
committer(quasar) nebula <qznebula@protonmail.com>2026-03-31 19:38:31 -0300
commit33adddd56f07b60d390734b8a519238dc6c9469d (patch)
treeddf1eed04bdaad58efb91774da63ccf1b2b45ff7 /test/unit/content/dependencies/linkArtist.js
parenta44f586bbc61bf8720770b59ece35b13b7bf0e62 (diff)
don't test content functions
Diffstat (limited to 'test/unit/content/dependencies/linkArtist.js')
-rw-r--r--test/unit/content/dependencies/linkArtist.js31
1 files changed, 0 insertions, 31 deletions
diff --git a/test/unit/content/dependencies/linkArtist.js b/test/unit/content/dependencies/linkArtist.js
deleted file mode 100644
index e6e19d2f..00000000
--- a/test/unit/content/dependencies/linkArtist.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import t from 'tap';
-import {testContentFunctions} from '#test-lib';
-
-testContentFunctions(t, 'linkArtist (unit)', async (t, evaluate) => {
-  const artistObject = {};
-  const linkTemplate = {};
-
-  await evaluate.load({
-    mock: evaluate.mock(mock => ({
-      linkThing: {
-        relations: mock.function('linkThing.relations', () => ({}))
-          .args([undefined, 'localized.artist', artistObject])
-          .once(),
-
-        data: mock.function('linkThing.data', () => ({}))
-          .args(['localized.artist', artistObject])
-          .once(),
-
-        generate: mock.function('linkThing.data', () => linkTemplate)
-          .once(),
-      }
-    })),
-  });
-
-  const result = evaluate({
-    name: 'linkArtist',
-    args: [artistObject],
-  });
-
-  t.equal(result, linkTemplate);
-});