GitHub

MockDaffCustomer

Mock class for DaffCustomer.

import { MockDaffCustomer } from '@daffodil/customer/testing'
class MockDaffCustomer implements DaffCustomer {
  id: faker.datatype.uuid()
  email: faker.internet.email()
  firstName: faker.name.firstName()
  lastName: faker.name.lastName()
  isSubscribed: faker.datatype.boolean()
  addresses: this.createAddresses()
}

Properties

Name Type Description
id faker.datatype.uuid()
email faker.internet.email()
firstName faker.name.firstName()
lastName faker.name.lastName()
isSubscribed faker.datatype.boolean()
addresses this.createAddresses()