generateBanner.js 544 B

1234567891011121314151617181920212223
  1. import t from 'tap';
  2. import {testContentFunctions} from '#test-lib';
  3. testContentFunctions(t, 'generateBanner (snapshot)', async (t, evaluate) => {
  4. await evaluate.load();
  5. evaluate.snapshot('basic behavior', {
  6. name: 'generateBanner',
  7. slots: {
  8. path: ['media.albumBanner', 'cool-album', 'png'],
  9. alt: 'Very cool banner art.',
  10. dimensions: [800, 200],
  11. },
  12. });
  13. evaluate.snapshot('no dimensions', {
  14. name: 'generateBanner',
  15. slots: {
  16. path: ['media.albumBanner', 'cool-album', 'png'],
  17. },
  18. });
  19. });