feat: update WebsiteType and EventConfig interfaces with new properties, enhance tenant creation in tests

This commit is contained in:
2026-08-03 09:09:58 -03:00
parent 941cb5c73c
commit ec18aaf0c5
3 changed files with 38 additions and 5 deletions

View File

@@ -103,7 +103,15 @@ function createTenant(extras: Tenant['extras'] = {}): Tenant {
header_logo: '/header.png',
footer_logo: '/footer.png',
website_type_code: 'shopit',
website_type: { codigo: 'shopit', nombre: 'ShopIt' },
website_type: {
codigo: 'shopit',
nombre: 'ShopIt',
primary_color: null,
secondary_color: null,
danger_color: null,
success_color: null,
site_logo: null,
},
extras,
categories: [],
};
@@ -188,11 +196,25 @@ describe('StoreHomePageComponent', () => {
title: 'Fiesta Fútbol Infantil',
location: 'Rosario, Santa Fe',
dates_text: '5 y 6 de diciembre de 2026',
dates: ['2026-12-05'],
dates: [
{
date: '2026-12-05',
start_time: '09:00',
end_time: '18:00',
},
],
},
});
tenant.website_type_code = 'onticket';
tenant.website_type = { codigo: 'onticket', nombre: 'OnTicket' };
tenant.website_type = {
codigo: 'onticket',
nombre: 'OnTicket',
primary_color: null,
secondary_color: null,
danger_color: null,
success_color: null,
site_logo: null,
};
await TestBed.configureTestingModule({
imports: [StoreHomePageComponent],