From 4e2993f3bedd8e413e56aafcb96a22b16d930680 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 12 Jun 2023 17:11:35 -0300 Subject: content: linkExternal: slot mode instead of taking type option --- test/snapshot/linkExternal.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'test') diff --git a/test/snapshot/linkExternal.js b/test/snapshot/linkExternal.js index 9661aead..a65044df 100644 --- a/test/snapshot/linkExternal.js +++ b/test/snapshot/linkExternal.js @@ -37,13 +37,9 @@ testContentFunctions(t, 'linkExternal (snapshot)', async (t, evaluate) => { {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'}]}, - - // Reuse default when no type specified - {args: ['https://youtu.be/abc']}, - {args: ['https://youtu.be/abc?list=kweh']}, - {args: ['https://youtube.com/watch?v=abc']}, - {args: ['https://youtube.com/watch?v=abc&list=kweh']}, ], + postprocess: + link => link.slot('mode', 'album'), }); evaluate.snapshot('custom domains for common platforms', { -- cgit 1.3.0-6-gf8a5