From 2ce5ddd844603b1c3d8f220a12603677104b7545 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 13 Jun 2023 12:37:18 -0300 Subject: test: use "native" slots shorthand instead of postprocess --- test/snapshot/generateAdditionalFilesList.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'test/snapshot/generateAdditionalFilesList.js') diff --git a/test/snapshot/generateAdditionalFilesList.js b/test/snapshot/generateAdditionalFilesList.js index 0c27ad19..60b46ae8 100644 --- a/test/snapshot/generateAdditionalFilesList.js +++ b/test/snapshot/generateAdditionalFilesList.js @@ -41,16 +41,16 @@ testContentFunctions(t, 'generateAdditionalFilesList (snapshot)', async (t, eval }, ], ], - postprocess: template => template - .slot('fileLinks', { + slots: { + fileLinks: { 'sburbwp_1280x1024.jpg': 'link to 1280x1024', 'sburbwp_1440x900.jpg': 'link to 1440x900', 'sburbwp_1920x1080.jpg': null, 'Homestuck_Vol4_alt1.jpg': 'link to alt1', 'Homestuck_Vol4_alt2.jpg': null, 'Homestuck_Vol4_alt3.jpg': 'link to alt3', - }) - .slot('fileSizes', { + }, + fileSizes: { 'sburbwp_1280x1024.jpg': 2500, 'sburbwp_1440x900.jpg': null, 'sburbwp_1920x1080.jpg': null, @@ -58,6 +58,7 @@ testContentFunctions(t, 'generateAdditionalFilesList (snapshot)', async (t, eval 'Homestuck_Vol4_alt1.jpg': 1234567, 'Homestuck_Vol4_alt2.jpg': 1234567, 'Homestuck_Vol4_alt3.jpg': 1234567, - }), + } + }, }); }); -- cgit 1.3.0-6-gf8a5