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/linkExternal.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'test/snapshot/linkExternal.js') diff --git a/test/snapshot/linkExternal.js b/test/snapshot/linkExternal.js index a65044df..391d5a10 100644 --- a/test/snapshot/linkExternal.js +++ b/test/snapshot/linkExternal.js @@ -31,15 +31,16 @@ testContentFunctions(t, 'linkExternal (snapshot)', async (t, evaluate) => { ], }); - evaluate.snapshot('custom matches - type: album', { + evaluate.snapshot('custom matches - album', { name: 'linkExternal', multiple: [ - {args: ['https://youtu.be/abc', {type: 'album'}]}, - {args: ['https://youtube.com/watch?v=abc', {type: 'album'}]}, - {args: ['https://youtube.com/Playlist?list=kweh', {type: 'album'}]}, + {args: ['https://youtu.be/abc']}, + {args: ['https://youtube.com/watch?v=abc']}, + {args: ['https://youtube.com/Playlist?list=kweh']}, ], - postprocess: - link => link.slot('mode', 'album'), + slots: { + mode: 'album', + }, }); evaluate.snapshot('custom domains for common platforms', { -- cgit 1.3.0-6-gf8a5