|
|
@@ -61,7 +61,7 @@ class TestEmailPlugin implements OnModuleInit {
|
|
|
|
|
|
onModuleInit() {
|
|
|
this.eventBus.ofType(AccountRegistrationEvent).subscribe(event => {
|
|
|
- sendEmailFn(event);
|
|
|
+ sendEmailFn?.(event);
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
@@ -505,7 +505,7 @@ describe('Customer resolver', () => {
|
|
|
customerErrorGuard.assertSuccess(createCustomer);
|
|
|
|
|
|
expect(createCustomer.user!.verified).toBe(true);
|
|
|
- expect(sendEmailFn).toHaveBeenCalledTimes(0);
|
|
|
+ expect(sendEmailFn).toHaveBeenCalledTimes(1);
|
|
|
});
|
|
|
|
|
|
it('return error result when using an existing, non-deleted emailAddress', async () => {
|