All files / src/messager update-password.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 1x 1x 1x   2x 1x     7x 7x 7x 7x
import { HBSTemplates } from '@/services/handlebars.service';
import { InternalMessager } from './index.mailer';

export class UpdatePasswordMailer extends InternalMessager {
  constructor(protected receivers: string[]) {
    super(receivers, 'Update Password');
  }
 
  async generate(body: Record<string, string>) {
    await this.generateMail(HBSTemplates.UPDATE_PASSWORD, body);
    return this;
  }
}