feat: add dates_text to EventConfig and update formattedDates method in HeroBannerComponent

This commit is contained in:
2026-07-30 16:32:37 -03:00
parent 934bd07105
commit 941cb5c73c
3 changed files with 7 additions and 15 deletions

View File

@@ -187,6 +187,7 @@ describe('StoreHomePageComponent', () => {
eventConfig: {
title: 'Fiesta Fútbol Infantil',
location: 'Rosario, Santa Fe',
dates_text: '5 y 6 de diciembre de 2026',
dates: ['2026-12-05'],
},
});
@@ -219,6 +220,7 @@ describe('StoreHomePageComponent', () => {
expect(hero.style.backgroundImage).toContain('https://example.com/hero.jpg');
expect(hero.textContent).toContain('Fiesta Fútbol Infantil');
expect(hero.textContent).toContain('Rosario, Santa Fe');
expect(hero.textContent).toContain('5 y 6 de diciembre de 2026');
});
it('requests another page for the selected featured group', async () => {