feat(ticket-selector): refactor variant handling to use single variant property and update related tests

This commit is contained in:
2026-08-18 08:51:52 -03:00
parent 207c979f71
commit 43e497cf97
6 changed files with 26 additions and 26 deletions

View File

@@ -1,7 +1,7 @@
export interface CartItemProduct {
nombre: string;
imagen: string | null;
variants?: CartItemVariant[];
variant: CartItemVariant | null;
}
export interface CartItemVariantOption {

View File

@@ -27,6 +27,12 @@ describe('CartService', () => {
product: {
nombre: 'Test Product (Size: M)',
imagen: null,
variant: {
id: 10,
precio: '10.00',
stock_tecnico: 1,
values: { size: 'M' },
},
},
},
],