From d1e586bd401a6d83ecabafb3b833a5ae65b6e05f Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 25 Mar 2023 15:00:01 -0300 Subject: data steps: more "quick" functions & basic snapshot test demo --- test/snapshots/linkArtist.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 test/snapshots/linkArtist.js (limited to 'test/snapshots/linkArtist.js') diff --git a/test/snapshots/linkArtist.js b/test/snapshots/linkArtist.js new file mode 100644 index 00000000..43fee88e --- /dev/null +++ b/test/snapshots/linkArtist.js @@ -0,0 +1,26 @@ +import t from 'tap'; + +import {testContentFunctions} from './_support.js'; + +testContentFunctions(t, 'linkArtist', (t, evaluate) => { + evaluate.snapshot({ + name: 'linkArtist', + args: [ + { + name: `Toby Fox`, + directory: `toby-fox`, + } + ], + }); + + evaluate.snapshot({ + name: 'linkArtist', + args: [ + { + name: 'ICCTTCMDMIROTMCWMWFTPFTDDOTARHPOESWGBTWEATFCWSEBTSSFOFG', + nameShort: '55gore', + directory: '55gore', + }, + ], + }, v => v.slot('preferShortName', true)); +}); -- cgit 1.3.0-6-gf8a5