From 0aa5a3841cb626b674ce88117c68fde20e174bfc Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 24 Apr 2024 16:12:42 -0300 Subject: test: update image (snapshot) --- tap-snapshots/test/snapshot/image.js.test.cjs | 12 ++++++++---- test/snapshot/image.js | 13 ++++++++++--- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/tap-snapshots/test/snapshot/image.js.test.cjs b/tap-snapshots/test/snapshot/image.js.test.cjs index ddfb3e6..77e9586 100644 --- a/tap-snapshots/test/snapshot/image.js.test.cjs +++ b/tap-snapshots/test/snapshot/image.js.test.cjs @@ -24,6 +24,14 @@ exports[`test/snapshot/image.js > TAP > image (snapshot) > content warnings via ` +exports[`test/snapshot/image.js > TAP > image (snapshot) > dimensions 1`] = ` +
+` + +exports[`test/snapshot/image.js > TAP > image (snapshot) > dimensions with square 1`] = ` +
+` + exports[`test/snapshot/image.js > TAP > image (snapshot) > lazy with square 1`] = `
@@ -64,7 +72,3 @@ exports[`test/snapshot/image.js > TAP > image (snapshot) > thumb requested but s exports[`test/snapshot/image.js > TAP > image (snapshot) > thumbnail details 1`] = `
` - -exports[`test/snapshot/image.js > TAP > image (snapshot) > width & height 1`] = ` -
-` diff --git a/test/snapshot/image.js b/test/snapshot/image.js index 447e7fa..1985211 100644 --- a/test/snapshot/image.js +++ b/test/snapshot/image.js @@ -38,11 +38,10 @@ testContentFunctions(t, 'image (snapshot)', async (t, evaluate) => { }, }); - quickSnapshot('width & height', { + quickSnapshot('dimensions', { slots: { src: 'foobar', - width: 600, - height: 400, + dimensions: [600, 400], }, }); @@ -53,6 +52,14 @@ testContentFunctions(t, 'image (snapshot)', async (t, evaluate) => { }, }); + quickSnapshot('dimensions with square', { + slots: { + src: 'foobar', + dimensions: [600, 400], + square: true, + }, + }); + quickSnapshot('lazy with square', { slots: { src: 'foobar', -- cgit 1.3.0-6-gf8a5