feat(ticket-selector): refactor variant handling to use single variant property and update related tests
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
export interface CartItemProduct {
|
||||
nombre: string;
|
||||
imagen: string | null;
|
||||
variants?: CartItemVariant[];
|
||||
variant: CartItemVariant | null;
|
||||
}
|
||||
|
||||
export interface CartItemVariantOption {
|
||||
|
||||
@@ -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' },
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user