diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-06-13 12:37:18 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-06-13 12:37:18 -0300 |
commit | 2ce5ddd844603b1c3d8f220a12603677104b7545 (patch) | |
tree | 1e3dc0183cd86c8dfc7e83336af7ae61e874bf04 /test/snapshot/linkExternal.js | |
parent | f8d1e6ee6e27e5539d50191b94a79d1fcb797939 (diff) |
test: use "native" slots shorthand instead of postprocess
Diffstat (limited to 'test/snapshot/linkExternal.js')
-rw-r--r-- | test/snapshot/linkExternal.js | 13 |
1 files changed, 7 insertions, 6 deletions
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', { |