GitHub

MockOrderTotal

class

import { MockOrderTotal } from '@daffodil/order/testing'

class MockOrderTotal implements DaffOrderTotal {
  label: faker.lorem.word() = faker.lorem.word()
  value: faker.number.int({ min: 1, max: 100 }) = faker.number.int({ min: 1, max: 100 })
  sort_order: faker.number.int({ min: 1, max: 100 }) = faker.number.int({ min: 1, max: 100 })
  type: faker.string.uuid() = faker.string.uuid()
}