hunk.code_window:   }) => {
       mutateAsync({
         ...args,
         subject: subject ? subject : '',
       }).then((result: { html: string; subject: string }) => {
         setContent(result.html);
         setParsedSubject(result.subject);
  
hunk.labels: keep keep keep keep replace replace replace keep
hunk.after_edit:     })
         .then((result: { html: string; subject: string }) => {
           setContent(result.html);
           setParsedSubject(result.subject);
  
hunk.file_path: apps/web/src/pages/templates/editor/Preview.tsx
hunk.type: replace
file: import { SubscriberRepository } from '@novu/dal';
  import { UserSession, SubscribersService } from '@novu/testing';
  import { Test } from '@nestjs/testing';
  import { expect } from 'chai';
  import { SharedModule } from '../../../shared/shared.module';
  import { UpdateSubscriber } from './update-subscriber.usecase';
  import { UpdateSubscriberCommand } from './update-subscriber.command';
  
  describe('Update Subscriber', function () {
    let updateUsecase: UpdateSubscriber;
    let session: UserSession;
    const subscriberRepository = new SubscriberRepository();
    beforeEach(async () => {
      const moduleRef = await Test.createTestingModule({
        imports: [SharedModule],
        providers: [UpdateSubscriber],
      }).compile();
  
      session = new UserSession();
      await session.initialize();
  
      updateUsecase = moduleRef.get<UpdateSubscriber>(UpdateSubscriber);
    });
  
    it('should update subscribers name', async function () {
      const subscriberService = new SubscribersService(session.organization._id, session.environment._id);
      const subscriber = await subscriberService.createSubscriber();
      await updateUsecase.execute(
        UpdateSubscriberCommand.create({
          organizationId: subscriber._organizationId,
          subscriberId: subscriber.subscriberId,
          lastName: 'Test Last Name',
          environmentId: session.environment._id,
        })
      );
  
      const updatedSubscriber = await subscriberRepository.findById(subscriber._id);
      expect(updatedSubscriber.lastName).to.equal('Test Last Name');
      expect(updatedSubscriber.firstName).to.equal(subscriber.firstName);
      expect(updatedSubscriber.email).to.equal(subscriber.email);
    });
  });
  