All files / src/messager verify-email.mailer.ts

77.27% Statements 17/22
90.9% Branches 10/11
80% Functions 8/10
94.11% Lines 16/17

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14  7x 5x 5x 5x   10x 5x     7x 7x 7x 7x
import { HBSTemplates } from '@/services/handlebars.service';
import { InternalMessager } from './index.mailer';

export class VerifyEmailMailer extends InternalMessager {
  constructor(protected receivers: string[]) {
    super(receivers, 'Verify Email');
  }
 
  async generate(body: { name: string; verificationLink: string }) {
    await this.generateMail(HBSTemplates.VERIFY_EMAIL, body);
    return this;
  }
}