From 7bbb984e89d52b5eb0ef8f89668ffc2181764344 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 18 Jun 2024 18:37:08 -0300 Subject: test: update contribution tests (snapshot) --- .../snapshot/generateAlbumReleaseInfo.js.test.cjs | 15 +- .../snapshot/generateAlbumTrackList.js.test.cjs | 28 +-- .../snapshot/generateTrackReleaseInfo.js.test.cjs | 8 +- .../test/snapshot/linkContribution.js.test.cjs | 188 ++++++++++----------- test/snapshot/generateAlbumReleaseInfo.js | 12 +- test/snapshot/generateAlbumTrackList.js | 6 +- test/snapshot/generateTrackReleaseInfo.js | 4 +- 7 files changed, 131 insertions(+), 130 deletions(-) diff --git a/tap-snapshots/test/snapshot/generateAlbumReleaseInfo.js.test.cjs b/tap-snapshots/test/snapshot/generateAlbumReleaseInfo.js.test.cjs index 4a7f35c3..14cce64e 100644 --- a/tap-snapshots/test/snapshot/generateAlbumReleaseInfo.js.test.cjs +++ b/tap-snapshots/test/snapshot/generateAlbumReleaseInfo.js.test.cjs @@ -7,16 +7,17 @@ 'use strict' exports[`test/snapshot/generateAlbumReleaseInfo.js > TAP > generateAlbumReleaseInfo (snapshot) > basic behavior 1`] = `

- By Toby Fox (music probably) and Tensei - - tenseimusic - Bandcamp (hot jams). + By Toby Fox (music probably) and Tensei + + tenseimusic + + Bandcamp (hot jams).
- Cover art by Hanni Brosh. + Cover art by Hanni Brosh.
- Wallpaper art by Hanni Brosh and Niklink (edits). + Wallpaper art by Hanni Brosh and Niklink (edits).
- Banner art by Hanni Brosh and Niklink (edits). + Banner art by Hanni Brosh and Niklink (edits).
Released 3/14/2011.
diff --git a/tap-snapshots/test/snapshot/generateAlbumTrackList.js.test.cjs b/tap-snapshots/test/snapshot/generateAlbumTrackList.js.test.cjs index 091f1b9f..10ab17c4 100644 --- a/tap-snapshots/test/snapshot/generateAlbumTrackList.js.test.cjs +++ b/tap-snapshots/test/snapshot/generateAlbumTrackList.js.test.cjs @@ -10,7 +10,7 @@ exports[`test/snapshot/generateAlbumTrackList.js > TAP > generateAlbumTrackList

  • (0:20) Track 1
  • [mocked: generateAlbumTrackListMissingDuration - slots: {}] Track 2
  • (0:40) Track 3
  • -
  • [mocked: generateAlbumTrackListMissingDuration - slots: {}] Track 4 by Apricot, Peach, and Cerise
  • +
  • [mocked: generateAlbumTrackListMissingDuration - slots: {}] Track 4 by Apricot, Peach, and Cerise
  • ` @@ -31,7 +31,7 @@ exports[`test/snapshot/generateAlbumTrackList.js > TAP > generateAlbumTrackList Second section: -
    +
    ` @@ -52,17 +52,17 @@ exports[`test/snapshot/generateAlbumTrackList.js > TAP > generateAlbumTrackList Second section: -
    +
    ` @@ -83,17 +83,17 @@ exports[`test/snapshot/generateAlbumTrackList.js > TAP > generateAlbumTrackList Second section: -
    +
    ` @@ -114,17 +114,17 @@ exports[`test/snapshot/generateAlbumTrackList.js > TAP > generateAlbumTrackList Second section: -
    +
    ` @@ -145,16 +145,16 @@ exports[`test/snapshot/generateAlbumTrackList.js > TAP > generateAlbumTrackList Second section: -
    +
    ` diff --git a/tap-snapshots/test/snapshot/generateTrackReleaseInfo.js.test.cjs b/tap-snapshots/test/snapshot/generateTrackReleaseInfo.js.test.cjs index e35f9358..098fe145 100644 --- a/tap-snapshots/test/snapshot/generateTrackReleaseInfo.js.test.cjs +++ b/tap-snapshots/test/snapshot/generateTrackReleaseInfo.js.test.cjs @@ -7,7 +7,7 @@ 'use strict' exports[`test/snapshot/generateTrackReleaseInfo.js > TAP > generateTrackReleaseInfo (snapshot) > basic behavior 1`] = `

    - By Toby Fox. + By Toby Fox.
    Released 11/29/2011.
    @@ -17,13 +17,13 @@ exports[`test/snapshot/generateTrackReleaseInfo.js > TAP > generateTrackReleaseI ` exports[`test/snapshot/generateTrackReleaseInfo.js > TAP > generateTrackReleaseInfo (snapshot) > cover artist contribs, non-unique 1`] = ` -

    By Toby Fox.

    +

    By Toby Fox.

    This wiki doesn't have any listening links for Suspicious Track.

    ` exports[`test/snapshot/generateTrackReleaseInfo.js > TAP > generateTrackReleaseInfo (snapshot) > cover artist contribs, unique 1`] = `

    - By Toby Fox. + By Toby Fox.
    Cover art by Alpaca (🔥).

    @@ -31,6 +31,6 @@ exports[`test/snapshot/generateTrackReleaseInfo.js > TAP > generateTrackReleaseI ` exports[`test/snapshot/generateTrackReleaseInfo.js > TAP > generateTrackReleaseInfo (snapshot) > reduced details 1`] = ` -

    By Toby Fox.

    +

    By Toby Fox.

    This wiki doesn't have any listening links for Suspicious Track.

    ` diff --git a/tap-snapshots/test/snapshot/linkContribution.js.test.cjs b/tap-snapshots/test/snapshot/linkContribution.js.test.cjs index c1631d2b..a9ac916e 100644 --- a/tap-snapshots/test/snapshot/linkContribution.js.test.cjs +++ b/tap-snapshots/test/snapshot/linkContribution.js.test.cjs @@ -6,113 +6,113 @@ */ 'use strict' exports[`test/snapshot/linkContribution.js > TAP > linkContribution (snapshot) > loads of links 1`] = ` -Lorem Ipsum Lover - - loremipsum.io - - Other - - - loremipsum.io - - Other - - - loremipsum.io - - Other - - - loremipsum.io - - Other - - - loremipsum.io - - Other - - - loremipsum.io - - Other - - - loremipsum.io - - Other - - - loremipsum.io - - Other +Lorem Ipsum Lover + + loremipsum.io + + Other + + + loremipsum.io + + Other + + + loremipsum.io + + Other + + + loremipsum.io + + Other + + + loremipsum.io + + Other + + + loremipsum.io + + Other + + + loremipsum.io + + Other + + + loremipsum.io + + Other ` exports[`test/snapshot/linkContribution.js > TAP > linkContribution (snapshot) > no accents 1`] = ` -Clark Powell -Grounder & Scratch -Toby Fox +Clark Powell +Grounder & Scratch +Toby Fox ` exports[`test/snapshot/linkContribution.js > TAP > linkContribution (snapshot) > no preventWrapping 1`] = ` -Clark Powell - - plazmataz - - SoundCloud -Grounder & Scratch (Snooping) -Toby Fox - - tobyfox - - Bandcamp - - - toby.fox - - Other (Arrangement) +Clark Powell + + plazmataz + + SoundCloud +Grounder & Scratch (Snooping) +Toby Fox + + tobyfox + + Bandcamp + + + toby.fox + + Other (Arrangement) ` exports[`test/snapshot/linkContribution.js > TAP > linkContribution (snapshot) > only showContribution 1`] = ` -Clark Powell -Grounder & Scratch (Snooping) -Toby Fox (Arrangement) +Clark Powell +Grounder & Scratch (Snooping) +Toby Fox (Arrangement) ` exports[`test/snapshot/linkContribution.js > TAP > linkContribution (snapshot) > only showExternalLinks 1`] = ` -Clark Powell - - plazmataz - - SoundCloud -Grounder & Scratch -Toby Fox - - tobyfox - - Bandcamp - - - toby.fox - - Other +Clark Powell + + plazmataz + + SoundCloud +Grounder & Scratch +Toby Fox + + tobyfox + + Bandcamp + + + toby.fox + + Other ` exports[`test/snapshot/linkContribution.js > TAP > linkContribution (snapshot) > showContribution & showExternalLinks 1`] = ` -Clark Powell - - plazmataz - - SoundCloud -Grounder & Scratch (Snooping) -Toby Fox - - tobyfox - - Bandcamp - - - toby.fox - - Other (Arrangement) +Clark Powell + + plazmataz + + SoundCloud +Grounder & Scratch (Snooping) +Toby Fox + + tobyfox + + Bandcamp + + + toby.fox + + Other (Arrangement) ` diff --git a/test/snapshot/generateAlbumReleaseInfo.js b/test/snapshot/generateAlbumReleaseInfo.js index a109912f..f41e502d 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: [ - {artist: {name: 'Toby Fox', directory: 'toby-fox', urls: null}, annotation: 'music probably'}, + {artist: {name: 'Toby Fox', directory: 'toby-fox', urls: []}, annotation: 'music probably'}, {artist: {name: 'Tensei', directory: 'tensei', urls: ['https://tenseimusic.bandcamp.com/']}, annotation: 'hot jams'}, ], coverArtistContribs: [ - {artist: {name: 'Hanni Brosh', directory: 'hb', urls: null}, annotation: null}, + {artist: {name: 'Hanni Brosh', directory: 'hb', urls: []}, annotation: null}, ], wallpaperArtistContribs: [ - {artist: {name: 'Hanni Brosh', directory: 'hb', urls: null}, annotation: null}, - {artist: {name: 'Niklink', directory: 'niklink', urls: null}, annotation: 'edits'}, + {artist: {name: 'Hanni Brosh', directory: 'hb', urls: []}, annotation: null}, + {artist: {name: 'Niklink', directory: 'niklink', urls: []}, annotation: 'edits'}, ], bannerArtistContribs: [ - {artist: {name: 'Hanni Brosh', directory: 'hb', urls: null}, annotation: null}, - {artist: {name: 'Niklink', directory: 'niklink', urls: null}, annotation: 'edits'}, + {artist: {name: 'Hanni Brosh', directory: 'hb', urls: []}, annotation: null}, + {artist: {name: 'Niklink', directory: 'niklink', urls: []}, annotation: 'edits'}, ], name: 'AlterniaBound', diff --git a/test/snapshot/generateAlbumTrackList.js b/test/snapshot/generateAlbumTrackList.js index 08b31902..a7c3f591 100644 --- a/test/snapshot/generateAlbumTrackList.js +++ b/test/snapshot/generateAlbumTrackList.js @@ -10,13 +10,13 @@ testContentFunctions(t, 'generateAlbumTrackList (snapshot)', async (t, evaluate) }); const contribs1 = [ - {artist: {name: 'Apricot', directory: 'apricot', urls: null}}, + {artist: {name: 'Apricot', directory: 'apricot', urls: []}}, ]; const contribs2 = [ - {artist: {name: 'Apricot', directory: 'apricot', urls: null}}, + {artist: {name: 'Apricot', directory: 'apricot', urls: []}}, {artist: {name: 'Peach', directory: 'peach', urls: ['https://peach.bandcamp.com/']}}, - {artist: {name: 'Cerise', directory: 'cerise', urls: null}}, + {artist: {name: 'Cerise', directory: 'cerise', urls: []}}, ]; const color1 = '#fb07ff'; diff --git a/test/snapshot/generateTrackReleaseInfo.js b/test/snapshot/generateTrackReleaseInfo.js index 78f0fee7..931377c8 100644 --- a/test/snapshot/generateTrackReleaseInfo.js +++ b/test/snapshot/generateTrackReleaseInfo.js @@ -4,8 +4,8 @@ import {testContentFunctions} from '#test-lib'; testContentFunctions(t, 'generateTrackReleaseInfo (snapshot)', async (t, evaluate) => { await evaluate.load(); - const artistContribs = [{artist: {name: 'Toby Fox', directory: 'toby-fox', urls: null}, annotation: null}]; - const coverArtistContribs = [{artist: {name: 'Alpaca', directory: 'alpaca', urls: null}, annotation: '🔥'}]; + const artistContribs = [{artist: {name: 'Toby Fox', directory: 'toby-fox', urls: []}, annotation: null}]; + const coverArtistContribs = [{artist: {name: 'Alpaca', directory: 'alpaca', urls: []}, annotation: '🔥'}]; evaluate.snapshot('basic behavior', { name: 'generateTrackReleaseInfo', -- cgit 1.3.0-6-gf8a5