feat: add dates_text to EventConfig and update formattedDates method in HeroBannerComponent
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user