diff options
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); |