diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-06-01 00:03:22 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-06-01 00:03:52 -0300 |
commit | 401236648e1efe907798dd4e2d368f1fbc773b62 (patch) | |
tree | a753a0efc80c193ba117b9ccebe282fdb214d6dc /test/lib | |
parent | a9384aaa1d5951dda497749776c872b3aa2a83d1 (diff) |
test: update track section unit tests, don't be magically easy
Most notably drops automatically setting ownTrackData. Hilariously, this doesn't break any tests (presumably because they were generally updated to handle a newer - albeit not the newest - track section format).
Diffstat (limited to 'test/lib')
-rw-r--r-- | test/lib/wiki-data.js | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/test/lib/wiki-data.js b/test/lib/wiki-data.js index 75b1170a..c373aadd 100644 --- a/test/lib/wiki-data.js +++ b/test/lib/wiki-data.js @@ -12,23 +12,6 @@ export function linkAndBindWikiData(wikiData, { ? withEntries(wikiData, entries => entries .map(([key, value]) => [key, value.slice()])) : wikiData)); - - // If albumData is present, automatically set their sections' ownTrackData - // by resolving references against the full array. This is just a nicety - // for working with albums throughout tests. - if (inferAlbumsOwnTrackData && wikiData.albumData && wikiData.trackData) { - for (const album of wikiData.albumData) { - const trackSections = - CacheableObject.getUpdateValue(album, 'trackSections'); - - for (const trackSection of trackSections) { - trackSection.ownTrackData = - CacheableObject.getUpdateValue(trackSection, 'tracks') - .map(ref => - find.track(ref, wikiData.trackData, {mode: 'error'})); - } - } - } } customLinkWikiDataArrays(wikiData); |