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
}
anyChange the currently logged-in customer's email.
| Parameter | email: string |
|---|---|
| Description |
| Parameter | password: string |
|---|---|
| Description |
anyChange the currently logged-in customer's password.
| Parameter | oldPassword: string |
|---|---|
| Description |
| Parameter | newPassword: string |
|---|---|
| Description |
anyGet the currently logged-in customer.
anyUpdate the currently logged-in customer.
| Parameter | customer: Partial<DaffCustomer> |
|---|---|
| Description |