update alt text tests

This commit is contained in:
mertalev 2025-05-05 09:18:23 -04:00
parent 1d885c1a20
commit b20440e4d5
No known key found for this signature in database
GPG Key ID: DF6ABC77AAD98C95

View File

@ -40,9 +40,10 @@ describe('getAltText', () => {
'generates correctly formatted alt text when isVideo=$isVideo, city=$city, country=$country, people=$people.length', 'generates correctly formatted alt text when isVideo=$isVideo, city=$city, country=$country, people=$people.length',
({ isVideo, city, country, people, expected }) => { ({ isVideo, city, country, people, expected }) => {
const asset = { const asset = {
description: { city, country, people: (people || [])?.map((p: { name: string }) => p.name) }, city,
country,
people: (people || [])?.map((p: { name: string }) => p.name),
localDateTime: '2024-01-01T12:00:00.000Z', localDateTime: '2024-01-01T12:00:00.000Z',
people,
isVideo, isVideo,
isImage: !isVideo, isImage: !isVideo,
} as unknown as TimelineAsset; } as unknown as TimelineAsset;