hunk.code_window: import { WSGateway } from './ws.gateway';
   import { SharedModule } from '../shared/shared.module';
   import { BullmqService } from '@novu/application-generic';
   export const WS_SOCKET_QUEUE = 'ws_socket_queue';
  
hunk.labels: keep keep add keep keep keep
hunk.after_edit: import { getRedisPrefix } from '@novu/shared';
  
hunk.file_path: apps/ws/src/socket/socket.module.ts
hunk.type: add
file: import { expect } from 'chai';
  import { EmailBlockTypeEnum } from '@novu/shared';
  
  import { sanitizeHTML, sanitizeMessageContent } from './sanitizer.service';
  
  describe('HTML Sanitizer', function () {
    it('should sanitize bad html', function () {
      const sanitizedHtml = sanitizeHTML('hello <b>bold</b> <script>alert(123)</script>');
      expect(sanitizedHtml).to.equal('hello <b>bold</b> ');
    });
  
    it('should sanitized message text content', function () {
      const result = sanitizeMessageContent('hello <b>bold</b> <script>alert(123)</script>');
      expect(result).to.equal('hello <b>bold</b> ');
    });
  
    it('should sanitized message email block content', function () {
      const result = sanitizeMessageContent([
        {
          type: EmailBlockTypeEnum.TEXT,
          content: 'hello <b>bold</b> <script>alert(123)</script>',
          url: '',
        },
      ]);
      expect(result[0].content).to.equal('hello <b>bold</b> ');
    });
  });
  