linkArtist.js 626 B

12345678910111213141516171819202122232425262728293031
  1. import t from 'tap';
  2. import {testContentFunctions} from '#test-lib';
  3. testContentFunctions(t, 'linkArtist (snapshot)', async (t, evaluate) => {
  4. await evaluate.load();
  5. evaluate.snapshot('basic behavior', {
  6. name: 'linkArtist',
  7. args: [
  8. {
  9. name: `Toby Fox`,
  10. directory: `toby-fox`,
  11. }
  12. ],
  13. });
  14. evaluate.snapshot('prefer short name', {
  15. name: 'linkArtist',
  16. args: [
  17. {
  18. name: 'ICCTTCMDMIROTMCWMWFTPFTDDOTARHPOESWGBTWEATFCWSEBTSSFOFG',
  19. nameShort: '55gore',
  20. directory: '55gore',
  21. },
  22. ],
  23. slots: {
  24. preferShortName: true,
  25. },
  26. });
  27. });