DaffMockConfigurableCartItem
import { DaffMockConfigurableCartItem } from '@daffodil/cart/testing'
class DaffMockConfigurableCartItem extends DaffMockCartItem implements DaffConfigurableCartItem {
type: DaffCartItemInputType.Configurable
attributes: [
{
attribute_label: 'Color',
value_label: 'Red'
},
{
attribute_label: 'Size',
value_label: 'M'
},
]
}
Properties
Name | Type | Description |
---|---|---|
type | DaffCartItemInputType.Configurable | |
attributes | [ { attribute_label: 'Color', value_label: 'Red' }, { attribute_label: 'Size', value_label: 'M' }, ] |