hunk.code_window:     const content = contentService.replaceVariables(smsChannel.template.content as string, messageVariables);
       const phone = command.payload.phone || subscriber.phone;
       const message: MessageEntity = await this.messageRepository.create({
         _notificationId: notification._id,
         _environmentId: command.environmentId,
         _organizationId: command.organizationId,
  
hunk.labels: keep keep add keep keep keep keep
hunk.after_edit:     const integration = await this.integrationRepository.findOne({
         _environmentId: command.environmentId,
         channel: ChannelTypeEnum.SMS,
         active: true,
       });
  
hunk.file_path: apps/api/src/app/events/usecases/send-message/send-message-sms.usecase.ts
hunk.type: add
file: import { Novu } from './novu';
  import axios from 'axios';
  
  const mockConfig = {
    apiKey: '1234',
  };
  
  jest.mock('axios');
  
  describe('test use of novu node package', () => {
    const mockedAxios = axios as jest.Mocked<typeof axios>;
    let novu: Novu;
  
    beforeEach(() => {
      mockedAxios.create.mockReturnThis();
      novu = new Novu(mockConfig.apiKey);
    });
  
    test('should trigger correctly', async () => {
      mockedAxios.post.mockResolvedValue({});
  
      await novu.trigger('test-template', {
        to: 'test-user',
        payload: {
          email: 'test-user@sd.com',
        },
      });
  
      expect(mockedAxios.post).toHaveBeenCalled();
      expect(mockedAxios.post).toHaveBeenCalledWith('/events/trigger', {
        name: 'test-template',
        to: 'test-user',
        payload: {
          email: 'test-user@sd.com',
        },
      });
    });
  
    test('should trigger correctly for all subscribers definitions ', async () => {
      mockedAxios.post.mockResolvedValue({});
  
      await novu.trigger('test-template', {
        to: ['test-user', 'test-another-user'],
        payload: {
          organizationName: 'Company',
        },
      });
  
      expect(mockedAxios.post).toHaveBeenCalled();
      expect(mockedAxios.post).toHaveBeenCalledWith('/events/trigger', {
        name: 'test-template',
        to: ['test-user', 'test-another-user'],
        payload: {
          organizationName: 'Company',
        },
      });
  
      await novu.trigger('test-template', {
        to: [
          { subscriberId: 'test-user', firstName: 'test' },
          { subscriberId: 'test-another-user' },
        ],
        payload: {
          organizationName: 'Company',
        },
      });
  
      expect(mockedAxios.post).toHaveBeenCalled();
      expect(mockedAxios.post).toHaveBeenCalledWith('/events/trigger', {
        name: 'test-template',
        to: [
          { subscriberId: 'test-user', firstName: 'test' },
          { subscriberId: 'test-another-user' },
        ],
        payload: {
          organizationName: 'Company',
        },
      });
    });
  });
  