generateAdditionalFilesShortcut.js 921 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import t from 'tap';
  2. import {testContentFunctions} from '../lib/content-function.js';
  3. testContentFunctions(t, 'generateAdditionalFilesShortcut (snapshot)', async (t, evaluate) => {
  4. await evaluate.load();
  5. evaluate.snapshot('no additional files', {
  6. name: 'generateAdditionalFilesShortcut',
  7. args: [[]],
  8. });
  9. evaluate.snapshot('basic behavior', {
  10. name: 'generateAdditionalFilesShortcut',
  11. args: [
  12. [
  13. {
  14. title: 'SBURB Wallpaper',
  15. files: [
  16. 'sburbwp_1280x1024.jpg',
  17. 'sburbwp_1440x900.jpg',
  18. 'sburbwp_1920x1080.jpg',
  19. ],
  20. },
  21. {
  22. title: 'Alternate Covers',
  23. description: 'This is just an example description.',
  24. files: [
  25. 'Homestuck_Vol4_alt1.jpg',
  26. 'Homestuck_Vol4_alt2.jpg',
  27. 'Homestuck_Vol4_alt3.jpg',
  28. ],
  29. },
  30. ],
  31. ],
  32. });
  33. });