GitHub

MockCategoryBreadcrumb

class

import { MockCategoryBreadcrumb } from '@daffodil/category/testing'

class MockCategoryBreadcrumb implements DaffCategoryBreadcrumb {
  id: faker.string.uuid() = faker.string.uuid()
  name: faker.commerce.productMaterial() = faker.commerce.productMaterial()
  level: faker.number.int({ min: 1, max: 5 }) = faker.number.int({ min: 1, max: 5 })
  url: faker.commerce.productMaterial() = faker.commerce.productMaterial()
}