MockCategory
Properties
| Name | Type | Description |
|---|---|---|
| id | faker.datatype.uuid() | |
| url | `/${faker.helpers.unique(faker.internet.domainWord)}.html` |
|
| canonicalUrl | faker.internet.url() | |
| name | faker.commerce.department() | |
| description | faker.commerce.productDescription() | |
| meta_title | faker.commerce.department() | |
| meta_description | faker.commerce.productDescription() | |
| breadcrumbs | this.breadcrumbFactory.createMany(faker.datatype.number({ min: 1, max: 5 })) | |
| children_count | faker.datatype.number({ min: 1, max: 10 }) | |
| total_products | faker.datatype.number({ min: 0, max: 9999 }) | |
| product_ids | [faker.datatype.number({ min: 1, max: 100 }).toString()] | |
| breadcrumbFactory | DaffCategoryBreadcrumbFactory |