import { MockProductReview } from '@daffodil/reviews/testing'
Mocked DaffProductReview
object.
class MockProductReview implements DaffProductReview {
overallRating: faker.number.int({ min: 1, max: 100 }) = faker.number.int({ min: 1, max: 100 })
id: faker.string.uuid() = faker.string.uuid()
productId: faker.string.uuid() = faker.string.uuid()
createdAt: faker.date.past({ years: 10 }).toISOString() = faker.date.past({ years: 10 }).toISOString()
title: faker.lorem.word() = faker.lorem.word()
body: faker.lorem.words(10) = faker.lorem.words(10)
ratings: DaffReviewRating[] = this.createRatings()
customer: DaffProductReviewCustomer = this.createCustomer()
protected ratingFactory: DaffReviewRatingFactory
protected customerFactory: DaffProductReviewCustomerFactory
}