From 47d504251c084e601b946866e572519b2612b13c Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 24 Jun 2023 17:16:21 -0300 Subject: test: fix failing cases from empty() check --- test/snapshot/generateAlbumReleaseInfo.js | 12 ++++++------ test/snapshot/generateTrackReleaseInfo.js | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'test/snapshot') 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', -- cgit 1.3.0-6-gf8a5