Covers the featured flag of an offering in the mapping tests

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-12 11:26:18 +01:00
co-authored by Claude Sonnet 5.5
parent 12319bb841
commit 915c41b92e
+11
View File
@@ -77,6 +77,17 @@ describe('mapOfferings', () => {
});
});
it('neemt featured over alleen als het true is', () => {
const result = mapOfferings([
card({ slug: 'a', featured: true }),
card({ slug: 'b', featured: 'ja' }),
]);
expect(result?.packages.map((p) => p.featured)).toEqual([
true,
undefined,
]);
});
it('slaat ongeldige kaarten over en behoudt de rest', () => {
const result = mapOfferings([
card({ slug: 'Slecht Id' }),