diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-06-12 17:11:35 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-06-12 17:11:35 -0300 |
commit | 4e2993f3bedd8e413e56aafcb96a22b16d930680 (patch) | |
tree | 443bfe0e1d721a304be11d47d0273030215021e7 /test | |
parent | 5952f159e4d02c8f8356ab8a9860fca6330b7757 (diff) |
content: linkExternal: slot mode instead of taking type option
Diffstat (limited to 'test')
-rw-r--r-- | test/snapshot/linkExternal.js | 8 |
1 files changed, 2 insertions, 6 deletions
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', { |