From 762be9d8078a2fd19a460b7172129a9575974f1f Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 4 Apr 2023 13:44:07 -0300 Subject: test: tidy & add descriptions for existing snapshot tests --- .../snapshot/generateContributionLinks.js.test.cjs | 24 +++++++++++----------- tap-snapshots/test/snapshot/linkArtist.js.test.cjs | 4 ++-- .../test/snapshot/linkExternalFlash.js.test.cjs | 18 +++++----------- .../test/snapshot/linkTemplate.js.test.cjs | 4 ++-- 4 files changed, 21 insertions(+), 29 deletions(-) (limited to 'tap-snapshots') diff --git a/tap-snapshots/test/snapshot/generateContributionLinks.js.test.cjs b/tap-snapshots/test/snapshot/generateContributionLinks.js.test.cjs index 51e1ac86..0abd2d38 100644 --- a/tap-snapshots/test/snapshot/generateContributionLinks.js.test.cjs +++ b/tap-snapshots/test/snapshot/generateContributionLinks.js.test.cjs @@ -5,13 +5,21 @@ * Make sure to inspect the output below. Do not ignore changes! */ 'use strict' -exports[`test/snapshot/generateContributionLinks.js TAP generateContributionLinks (snapshot) > output 1`] = ` +exports[`test/snapshot/generateContributionLinks.js TAP generateContributionLinks (snapshot) > no accents 1`] = ` +Clark Powell, Grounder & Scratch, and Toby Fox +` + +exports[`test/snapshot/generateContributionLinks.js TAP generateContributionLinks (snapshot) > only showContribution 1`] = ` +Clark Powell, Grounder & Scratch (Snooping), and Toby Fox (Arrangement) +` + +exports[`test/snapshot/generateContributionLinks.js TAP generateContributionLinks (snapshot) > only showIcons 1`] = ` Clark Powell ( SoundCloud - ), Grounder & Scratch (Snooping), and Toby Fox (Arrangement) ( + ), Grounder & Scratch, and Toby Fox ( Bandcamp @@ -24,17 +32,13 @@ exports[`test/snapshot/generateContributionLinks.js TAP generateContributionLink ) ` -exports[`test/snapshot/generateContributionLinks.js TAP generateContributionLinks (snapshot) > output 2`] = ` -Clark Powell, Grounder & Scratch (Snooping), and Toby Fox (Arrangement) -` - -exports[`test/snapshot/generateContributionLinks.js TAP generateContributionLinks (snapshot) > output 3`] = ` +exports[`test/snapshot/generateContributionLinks.js TAP generateContributionLinks (snapshot) > showContribution & showIcons 1`] = ` Clark Powell ( SoundCloud - ), Grounder & Scratch, and Toby Fox ( + ), Grounder & Scratch (Snooping), and Toby Fox (Arrangement) ( Bandcamp @@ -46,7 +50,3 @@ exports[`test/snapshot/generateContributionLinks.js TAP generateContributionLink ) ` - -exports[`test/snapshot/generateContributionLinks.js TAP generateContributionLinks (snapshot) > output 4`] = ` -Clark Powell, Grounder & Scratch, and Toby Fox -` diff --git a/tap-snapshots/test/snapshot/linkArtist.js.test.cjs b/tap-snapshots/test/snapshot/linkArtist.js.test.cjs index 647742e0..77516f3f 100644 --- a/tap-snapshots/test/snapshot/linkArtist.js.test.cjs +++ b/tap-snapshots/test/snapshot/linkArtist.js.test.cjs @@ -5,10 +5,10 @@ * Make sure to inspect the output below. Do not ignore changes! */ 'use strict' -exports[`test/snapshot/linkArtist.js TAP linkArtist > output 1`] = ` +exports[`test/snapshot/linkArtist.js TAP linkArtist (snapshot) > basic behavior 1`] = ` Toby Fox ` -exports[`test/snapshot/linkArtist.js TAP linkArtist > output 2`] = ` +exports[`test/snapshot/linkArtist.js TAP linkArtist (snapshot) > prefer short name 1`] = ` 55gore ` diff --git a/tap-snapshots/test/snapshot/linkExternalFlash.js.test.cjs b/tap-snapshots/test/snapshot/linkExternalFlash.js.test.cjs index e4d001a9..d7f6c1c3 100644 --- a/tap-snapshots/test/snapshot/linkExternalFlash.js.test.cjs +++ b/tap-snapshots/test/snapshot/linkExternalFlash.js.test.cjs @@ -5,22 +5,14 @@ * Make sure to inspect the output below. Do not ignore changes! */ 'use strict' -exports[`test/snapshot/linkExternalFlash.js TAP linkExternalFlash (snapshot) > output 1`] = ` +exports[`test/snapshot/linkExternalFlash.js TAP linkExternalFlash (snapshot) > basic behavior 1`] = ` homestuck.com (page 4109) -` - -exports[`test/snapshot/linkExternalFlash.js TAP linkExternalFlash (snapshot) > output 2`] = ` -homestuck.com (secret page) -` - -exports[`test/snapshot/linkExternalFlash.js TAP linkExternalFlash (snapshot) > output 3`] = ` YouTube (on any device) -` - -exports[`test/snapshot/linkExternalFlash.js TAP linkExternalFlash (snapshot) > output 4`] = ` www.bgreco.net (HQ Audio) +Newgrounds ` -exports[`test/snapshot/linkExternalFlash.js TAP linkExternalFlash (snapshot) > output 5`] = ` -Newgrounds +exports[`test/snapshot/linkExternalFlash.js TAP linkExternalFlash (snapshot) > secret page 1`] = ` +homestuck.com (secret page) +YouTube (on any device) ` diff --git a/tap-snapshots/test/snapshot/linkTemplate.js.test.cjs b/tap-snapshots/test/snapshot/linkTemplate.js.test.cjs index 4ca3e00f..9063eace 100644 --- a/tap-snapshots/test/snapshot/linkTemplate.js.test.cjs +++ b/tap-snapshots/test/snapshot/linkTemplate.js.test.cjs @@ -5,10 +5,10 @@ * Make sure to inspect the output below. Do not ignore changes! */ 'use strict' -exports[`test/snapshot/linkTemplate.js TAP linkTemplate > output 1`] = ` +exports[`test/snapshot/linkTemplate.js TAP linkTemplate (snapshot) > fill many slots 1`] = ` My Cool Link ` -exports[`test/snapshot/linkTemplate.js TAP linkTemplate > output 2`] = ` +exports[`test/snapshot/linkTemplate.js TAP linkTemplate (snapshot) > fill path slot 1`] = ` ` -- cgit 1.3.0-6-gf8a5