diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-06-15 16:33:01 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-06-15 16:33:01 -0300 |
commit | 6389af975c93f2c35ba21636cc697251fea580d6 (patch) | |
tree | f9ff13d8f629f6942b30b78c83a6ebfc8e2cb7f3 /tap-snapshots/test/snapshot | |
parent | 05c8c67dd63352db898b1c10129c2239c0bf1936 (diff) |
test: generate{Album,Page}Banner (snapshot)
Diffstat (limited to 'tap-snapshots/test/snapshot')
-rw-r--r-- | tap-snapshots/test/snapshot/generateAlbumBanner.js.test.cjs | 18 | ||||
-rw-r--r-- | tap-snapshots/test/snapshot/generatePageBanner.js.test.cjs | 14 |
2 files changed, 32 insertions, 0 deletions
diff --git a/tap-snapshots/test/snapshot/generateAlbumBanner.js.test.cjs b/tap-snapshots/test/snapshot/generateAlbumBanner.js.test.cjs new file mode 100644 index 00000000..28eaf6d3 --- /dev/null +++ b/tap-snapshots/test/snapshot/generateAlbumBanner.js.test.cjs @@ -0,0 +1,18 @@ +/* IMPORTANT + * This snapshot file is auto-generated, but designed for humans. + * It should be checked into source control and tracked carefully. + * Re-generate by setting TAP_SNAPSHOT=1 and running tests. + * Make sure to inspect the output below. Do not ignore changes! + */ +'use strict' +exports[`test/snapshot/generateAlbumBanner.js TAP generateAlbumBanner (snapshot) > basic behavior 1`] = ` +<div id="banner"><img src="media/album-art/cool-album/banner.png" alt="album banner" width="800" height="200"></div> +` + +exports[`test/snapshot/generateAlbumBanner.js TAP generateAlbumBanner (snapshot) > no banner 1`] = ` + +` + +exports[`test/snapshot/generateAlbumBanner.js TAP generateAlbumBanner (snapshot) > no dimensions 1`] = ` +<div id="banner"><img src="media/album-art/cool-album/banner.png" alt="album banner" width="1100" height="200"></div> +` diff --git a/tap-snapshots/test/snapshot/generatePageBanner.js.test.cjs b/tap-snapshots/test/snapshot/generatePageBanner.js.test.cjs new file mode 100644 index 00000000..fd84b074 --- /dev/null +++ b/tap-snapshots/test/snapshot/generatePageBanner.js.test.cjs @@ -0,0 +1,14 @@ +/* IMPORTANT + * This snapshot file is auto-generated, but designed for humans. + * It should be checked into source control and tracked carefully. + * Re-generate by setting TAP_SNAPSHOT=1 and running tests. + * Make sure to inspect the output below. Do not ignore changes! + */ +'use strict' +exports[`test/snapshot/generatePageBanner.js TAP generatePageBanner (snapshot) > basic behavior 1`] = ` +<div id="banner"><img src="media/album-art/cool-album/banner.png" alt="Very cool banner art." width="800" height="200"></div> +` + +exports[`test/snapshot/generatePageBanner.js TAP generatePageBanner (snapshot) > no dimensions 1`] = ` +<div id="banner"><img src="media/album-art/cool-album/banner.png" width="1100" height="200"></div> +` |