From 145a4a292dea7dccb2bb9b58a760db32948c3918 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 30 May 2023 10:01:00 -0300 Subject: test: snapshot how thumbnail details are exposed in images --- test/snapshot/image.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'test/snapshot/image.js') diff --git a/test/snapshot/image.js b/test/snapshot/image.js index 5e12cc25..a8796e11 100644 --- a/test/snapshot/image.js +++ b/test/snapshot/image.js @@ -98,4 +98,19 @@ testContentFunctions(t, 'image (snapshot)', async (t, evaluate) => { path: ['media.albumCover', 'beyond-canon', 'png'], }, }); + + evaluate.snapshot('thumbnail details', { + name: 'image', + extraDependencies: { + getSizeOfImagePath: () => 0, + getDimensionsOfImagePath: () => [900, 1200], + getThumbnailsAvailableForDimensions: () => + [['voluminous', 1200], ['middling', 900], ['petite', 20]], + getThumbnailEqualOrSmaller: () => 'voluminous', + }, + slots: { + thumb: 'gargantuan', + path: ['media.albumCover', 'beyond-canon', 'png'], + }, + }); }); -- cgit 1.3.0-6-gf8a5