« get me outta code hell

test: remove all existing snapshot tests - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/test/snapshot/generateAlbumReleaseInfo.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-10-15 14:27:29 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-10-15 14:27:29 -0300
commit1aa217195f4d5f82653e29d6c265f92c2d1bbd7e (patch)
tree98511aa6b51bdc5cbc4c31ddcf144f03bf2b8422 /test/snapshot/generateAlbumReleaseInfo.js
parent643797e6a2dcf4c39117e6ef99d9c8672e2d2511 (diff)
test: remove all existing snapshot tests
Deliberately keeping evaluate.snapshot() for possible future use.

There are also these folders which were seemingly never included
in the working tree:

test/snapshot/complete
test/snapshot/isolated
test/snapshot/mixed

If and when we come back to snasphot tests, maybe we'll bounce
off of that idea shaped out of three words.
Diffstat (limited to 'test/snapshot/generateAlbumReleaseInfo.js')
-rw-r--r--test/snapshot/generateAlbumReleaseInfo.js74
1 files changed, 0 insertions, 74 deletions
diff --git a/test/snapshot/generateAlbumReleaseInfo.js b/test/snapshot/generateAlbumReleaseInfo.js
deleted file mode 100644
index f41e502d..00000000
--- a/test/snapshot/generateAlbumReleaseInfo.js
+++ /dev/null
@@ -1,74 +0,0 @@
-import t from 'tap';
-import {testContentFunctions} from '#test-lib';
-
-testContentFunctions(t, 'generateAlbumReleaseInfo (snapshot)', async (t, evaluate) => {
-  await evaluate.load();
-
-  evaluate.snapshot('basic behavior', {
-    name: 'generateAlbumReleaseInfo',
-    args: [{
-      artistContribs: [
-        {artist: {name: 'Toby Fox', directory: 'toby-fox', urls: []}, annotation: 'music probably'},
-        {artist: {name: 'Tensei', directory: 'tensei', urls: ['https://tenseimusic.bandcamp.com/']}, annotation: 'hot jams'},
-      ],
-
-      coverArtistContribs: [
-        {artist: {name: 'Hanni Brosh', directory: 'hb', urls: []}, annotation: null},
-      ],
-
-      wallpaperArtistContribs: [
-        {artist: {name: 'Hanni Brosh', directory: 'hb', urls: []}, annotation: null},
-        {artist: {name: 'Niklink', directory: 'niklink', urls: []}, annotation: 'edits'},
-      ],
-
-      bannerArtistContribs: [
-        {artist: {name: 'Hanni Brosh', directory: 'hb', urls: []}, annotation: null},
-        {artist: {name: 'Niklink', directory: 'niklink', urls: []}, annotation: 'edits'},
-      ],
-
-      name: 'AlterniaBound',
-      date: new Date('March 14, 2011'),
-      coverArtDate: new Date('April 1, 1991'),
-      urls: [
-        'https://homestuck.bandcamp.com/album/alterniabound-with-alternia',
-        'https://www.youtube.com/playlist?list=PLnVpmehyaOFZWO9QOZmD6A3TIK0wZ6xE2',
-        'https://www.youtube.com/watch?v=HO5V2uogkYc',
-      ],
-
-      tracks: [{duration: 253}, {duration: 372}],
-    }],
-  });
-
-  const sparse = {
-    artistContribs: [],
-    coverArtistContribs: [],
-    wallpaperArtistContribs: [],
-    bannerArtistContribs: [],
-
-    name: 'Suspicious Album',
-    urls: [],
-    tracks: [],
-  };
-
-  evaluate.snapshot('reduced details', {
-    name: 'generateAlbumReleaseInfo',
-    args: [sparse],
-  });
-
-  evaluate.snapshot('URLs only', {
-    name: 'generateAlbumReleaseInfo',
-    args: [{
-      ...sparse,
-      urls: ['https://homestuck.bandcamp.com/foo', 'https://soundcloud.com/bar'],
-    }],
-  });
-
-  evaluate.snapshot('equal cover art date', {
-    name: 'generateAlbumReleaseInfo',
-    args: [{
-      ...sparse,
-      date: new Date('2020-04-13'),
-      coverArtDate: new Date('2020-04-13'),
-    }],
-  });
-});