All files / src/common/services notification.service.ts

80% Statements 8/10
75% Branches 3/4
66.66% Functions 2/3
75% Lines 6/8

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 15 16 17 18 1915x 15x     15x 9x       2x 2x                
import { Injectable } from '@nestjs/common';
import { LoggerService } from '@app/common/services/logger.service';
 
@Injectable()
export class NotificationService {
  constructor(private readonly logger: LoggerService) {}
 
  async sendEmail(to: string, subject: string, body: string) {
    // TODO: Integrate with real email provider
    this.logger.info('Sending email', { to, subject, body });
    return true;
  }
 
  async sendSMS(to: string, message: string) {
    // TODO: Integrate with real SMS provider
    this.logger.info('Sending SMS', { to, message });
    return true;
  }
}