Files
bmp-website-2026/tests/int/press-collection-items.int.spec.ts
2026-07-31 14:25:11 +02:00

17 lines
652 B
TypeScript

import { describe, expect, it } from 'vitest'
import { pressEventsFromCms, pressNewsFromCms } from '@/spa/pressCollectionItems'
import { pressIndexContent } from '@/spa/pressIndexContent'
describe('press collection items', () => {
it('does not replace an empty published events collection with demo event rows', () => {
expect(
pressEventsFromCms([], '/images/event-placeholder.jpg', {}, pressIndexContent.events),
).toEqual([])
})
it('does not replace an empty published posts collection with demo news cards', () => {
expect(pressNewsFromCms([], '/images/news-placeholder.jpg', pressIndexContent.news)).toEqual([])
})
})