refactor(storefront): consume storefront website type

This commit is contained in:
2026-09-17 14:26:04 -03:00
parent 90a0ac3e36
commit de5c533d85
2 changed files with 3 additions and 32 deletions

View File

@@ -107,16 +107,7 @@ function createTenant(extras: Tenant['extras'] = {}): Tenant {
footer_bg_color: '#ffffff',
header_logo: '/header.png',
footer_logo: '/footer.png',
website_type_code: 'shopit',
website_type: {
codigo: 'shopit',
nombre: 'ShopIt',
primary_color: null,
secondary_color: null,
danger_color: null,
success_color: null,
site_logo: null,
},
storefront_website_type_code: 'shopit',
extras,
categories: [],
};
@@ -247,7 +238,7 @@ describe('StoreHomePageComponent', () => {
],
};
tenant.event_date_text = '5 y 6 de Diciembre 2026';
tenant.website_type_code = 'onticket';
tenant.storefront_website_type_code = 'onticket';
tenant.social_media = [
{
code: 'whatsapp',
@@ -256,15 +247,6 @@ describe('StoreHomePageComponent', () => {
url: 'https://wa.me/5493410000000',
},
];
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],