diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-06-24 17:16:21 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-06-24 17:16:21 -0300 |
commit | 47d504251c084e601b946866e572519b2612b13c (patch) | |
tree | bb609c402c250bd0155d0504d83dd02c88451263 | |
parent | 68b9e2fec15a81a14d80ecc4bf886a05888ee9f9 (diff) |
test: fix failing cases from empty() check
-rw-r--r-- | test/snapshot/generateAlbumReleaseInfo.js | 12 | ||||
-rw-r--r-- | test/snapshot/generateTrackReleaseInfo.js | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/test/snapshot/generateAlbumReleaseInfo.js b/test/snapshot/generateAlbumReleaseInfo.js index cbee5eb7..7e3b37bd 100644 --- a/test/snapshot/generateAlbumReleaseInfo.js +++ b/test/snapshot/generateAlbumReleaseInfo.js @@ -8,22 +8,22 @@ testContentFunctions(t, 'generateAlbumReleaseInfo (snapshot)', async (t, evaluat name: 'generateAlbumReleaseInfo', args: [{ artistContribs: [ - {who: {name: 'Toby Fox', directory: 'toby-fox'}, what: 'music probably'}, + {who: {name: 'Toby Fox', directory: 'toby-fox', urls: null}, what: 'music probably'}, {who: {name: 'Tensei', directory: 'tensei', urls: ['https://tenseimusic.bandcamp.com/']}, what: 'hot jams'}, ], coverArtistContribs: [ - {who: {name: 'Hanni Brosh', directory: 'hb'}, what: null}, + {who: {name: 'Hanni Brosh', directory: 'hb', urls: null}, what: null}, ], wallpaperArtistContribs: [ - {who: {name: 'Hanni Brosh', directory: 'hb'}, what: null}, - {who: {name: 'Niklink', directory: 'niklink'}, what: 'edits'}, + {who: {name: 'Hanni Brosh', directory: 'hb', urls: null}, what: null}, + {who: {name: 'Niklink', directory: 'niklink', urls: null}, what: 'edits'}, ], bannerArtistContribs: [ - {who: {name: 'Hanni Brosh', directory: 'hb'}, what: null}, - {who: {name: 'Niklink', directory: 'niklink'}, what: 'edits'}, + {who: {name: 'Hanni Brosh', directory: 'hb', urls: null}, what: null}, + {who: {name: 'Niklink', directory: 'niklink', urls: null}, what: 'edits'}, ], name: 'AlterniaBound', diff --git a/test/snapshot/generateTrackReleaseInfo.js b/test/snapshot/generateTrackReleaseInfo.js index dd7ebd8e..5556f38b 100644 --- a/test/snapshot/generateTrackReleaseInfo.js +++ b/test/snapshot/generateTrackReleaseInfo.js @@ -4,8 +4,8 @@ import {testContentFunctions} from '../lib/content-function.js'; testContentFunctions(t, 'generateTrackReleaseInfo (snapshot)', async (t, evaluate) => { await evaluate.load(); - const artistContribs = [{who: {name: 'Toby Fox', directory: 'toby-fox'}, what: null}]; - const coverArtistContribs = [{who: {name: 'Alpaca', directory: 'alpaca'}, what: '🔥'}]; + const artistContribs = [{who: {name: 'Toby Fox', directory: 'toby-fox', urls: null}, what: null}]; + const coverArtistContribs = [{who: {name: 'Alpaca', directory: 'alpaca', urls: null}, what: '🔥'}]; evaluate.snapshot('basic behavior', { name: 'generateTrackReleaseInfo', |