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

export class ConfirmDeleteMailer extends InternalMessager {
  constructor(protected receivers: string[]) {
    super(receivers, 'Confirm deleting profile');
  }
 
  async generate(body: Record<string, string>) {
    await this.generateMail(HBSTemplates.CONFIRM_DELETING, body);
    return this;
  }
}