GitHub

MockDaffAddress

class

import { MockDaffAddress } from '@daffodil/geography/testing'

class MockDaffAddress implements DaffAddress {
  street: faker.location.street() = faker.location.street()
  street2: faker.location.secondaryAddress() = faker.location.secondaryAddress()
  city: faker.location.city() = faker.location.city()
  region: faker.string.uuid() = faker.string.uuid()
  region_code: faker.location.state({ abbreviated: true }) = faker.location.state({ abbreviated: true })
  postcode: faker.location.zipCode() = faker.location.zipCode()
  country: faker.location.countryCode() = faker.location.countryCode()
}