« get me outta code hell

generateAdditionalFilesShortcut.js « snapshot « test - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/test/snapshot/generateAdditionalFilesShortcut.js
blob: 9825efa19174ebb75ba36e68dddb76c3a7c851a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import t from 'tap';
import {testContentFunctions} from '#test-lib';

testContentFunctions(t, 'generateAdditionalFilesShortcut (snapshot)', async (t, evaluate) => {
  await evaluate.load();

  evaluate.snapshot('no additional files', {
    name: 'generateAdditionalFilesShortcut',
    args: [[]],
  });

  evaluate.snapshot('basic behavior', {
    name: 'generateAdditionalFilesShortcut',
    args: [
      [
        {
          title: 'SBURB Wallpaper',
          files: [
            'sburbwp_1280x1024.jpg',
            'sburbwp_1440x900.jpg',
            'sburbwp_1920x1080.jpg',
          ],
        },
        {
          title: 'Alternate Covers',
          description: 'This is just an example description.',
          files: [
            'Homestuck_Vol4_alt1.jpg',
            'Homestuck_Vol4_alt2.jpg',
            'Homestuck_Vol4_alt3.jpg',
          ],
        },
      ],
    ],
  });
});