MockCompositeProductItemOption
Mocked DaffCompositeProductItemOption object.
import { MockCompositeProductItemOption } from '@daffodil/product-composite/testing'
class MockCompositeProductItemOption extends MockProduct implements DaffCompositeProductItemOption {
quantity: faker.datatype.number({ min: 1, max: 9 })
is_default: faker.datatype.boolean()
}
Properties
Name | Type | Description |
---|---|---|
quantity | faker.datatype.number({ min: 1, max: 9 }) | |
is_default | faker.datatype.boolean() |