diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2025-10-15 15:27:00 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2025-10-15 15:27:34 -0300 |
commit | 4b3234a71a7f0e4edd68ccd7ff40270b34290bd8 (patch) | |
tree | 4617116cae4e7d021ee641dbffa0b139ac2c431f /test | |
parent | af7445f4f421cafcaa845c11495cab6ed5d8dcfd (diff) |
test: update linkWikiDataArrays call
Diffstat (limited to 'test')
-rw-r--r-- | test/lib/wiki-data.js | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/test/lib/wiki-data.js b/test/lib/wiki-data.js index 7c3d2147..f0ee0ef5 100644 --- a/test/lib/wiki-data.js +++ b/test/lib/wiki-data.js @@ -1,5 +1,6 @@ import CacheableObject from '#cacheable-object'; -import find from '#find'; +import find, {bindFind} from '#find'; +import {bindReverse} from '#reverse'; import {withEntries} from '#sugar'; import Thing from '#thing'; import thingConstructors from '#things'; @@ -9,11 +10,13 @@ export function linkAndBindWikiData(wikiData, { inferAlbumsOwnTrackData = true, } = {}) { function customLinkWikiDataArrays(wikiData, options = {}) { - linkWikiDataArrays( - (options.XXX_decacheWikiData - ? withEntries(wikiData, entries => entries - .map(([key, value]) => [key, value.slice()])) - : wikiData)); + if (options.XXX_decacheWikiData) { + wikiData = + withEntries(wikiData, entries => entries + .map(([key, value]) => [key, value.slice()])); + } + + linkWikiDataArrays(wikiData, {bindFind, bindReverse}); } customLinkWikiDataArrays(wikiData); |