GitHub

DaffCustomerTestingDriver

Service

import { DaffCustomerTestingDriver } from '@daffodil/customer/driver/testing'

A basic customer driver that creates mock customer results of different kinds. For testing purposes.

@Injectable()
class DaffCustomerTestingDriver implements DaffCustomerDriverInterface {
  changeEmail(
    email: string
    password: string
  ): any
  changePassword(
    oldPassword: string
    newPassword: string
  ): any
  get(): any
  update(customer: Partial<DaffCustomer>): any
}

() Methods

changeEmail
any

Change the currently logged-in customer's email.

Parameters
Parameteremail: string
Description
Parameterpassword: string
Description
changePassword
any

Change the currently logged-in customer's password.

Parameters
ParameteroldPassword: string
Description
ParameternewPassword: string
Description
get
any

Get the currently logged-in customer.

update
any

Update the currently logged-in customer.

Parameters
Parametercustomer: Partial<DaffCustomer>
Description