« get me outta code hell

test: update image (snapshot) - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/test/snapshot
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-04-24 16:12:42 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-04-24 16:12:42 -0300
commit0aa5a3841cb626b674ce88117c68fde20e174bfc (patch)
tree6fefc0f03617a292419827628497b9aa968e0e36 /test/snapshot
parent3aba2a934ddb358d3b3bf937960867fb2555e3ec (diff)
test: update image (snapshot)
Diffstat (limited to 'test/snapshot')
-rw-r--r--test/snapshot/image.js13
1 files changed, 10 insertions, 3 deletions
diff --git a/test/snapshot/image.js b/test/snapshot/image.js
index 447e7fa7..1985211f 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',