hunk.code_window:     }
       return this.notifire;
     }
     async registerProviders(): Promise<any> {
       const providerPromises = [];
       for (let i = 0; i < this.providers.length; i += 1) {
         const waiting = await this.notifire.registerProvider(this.providers[i]);
         providerPromises.push(waiting);
       }
  
hunk.labels: keep keep keep keep replace replace replace replace replace replace keep
hunk.after_edit:   async registerProviders(): Promise<void> {
       for (const provider of this.providers) {
         await this.notifire.registerProvider(provider);
  
hunk.file_path: packages/nest/src/services/notifire.service.ts
hunk.type: replace
file: import { expect } from 'chai';
  import { NotificationTemplateRepository } from '@notifire/dal';
  import { UserSession, NotificationTemplateService } from '@notifire/testing';
  
  describe('Change template status by id - /notification-templates/:templateId/status (PUT)', async () => {
    let session: UserSession;
    const notificationTemplateRepository = new NotificationTemplateRepository();
    before(async () => {
      session = new UserSession();
      await session.initialize();
    });
  
    it('should change the status from active false to active true', async function () {
      const notificationTemplateService = new NotificationTemplateService(
        session.user._id,
        session.organization._id,
        session.application._id
      );
      const template = await notificationTemplateService.createTemplate({
        active: false,
        draft: true,
      });
      const beforeChange = await notificationTemplateRepository.findById(template._id, template._organizationId);
      expect(beforeChange.active).to.equal(false);
      expect(beforeChange.draft).to.equal(true);
      const { body } = await session.testAgent.put(`/v1/notification-templates/${template._id}/status`).send({
        active: true,
      });
      const found = await notificationTemplateRepository.findById(template._id, template._organizationId);
      expect(found.active).to.equal(true);
      expect(found.draft).to.equal(false);
    });
  });
  