hunk.code_window:         </Sidebar>
         </FormProvider>
       );
     }
     return (
  
hunk.labels: add keep keep keep keep keep
hunk.after_edit:         <SelectPrimaryIntegrationModal />
  
hunk.file_path: apps/web/src/pages/integrations/components/multi-provider/UpdateProviderSidebar.tsx
hunk.type: add
file: import { PlunkEmailProvider } from './plunk.provider';
  
  const mockConfig = {
    apiKey: 'sample-api-key',
  };
  
  const mockNovuMessage = {
    from: 'test@nomail.com',
    to: ['test@nomail.com'],
    html: '<div> Mail Content </div>',
    subject: 'Test subject',
  };
  
  test('should trigger plunk library correctly', async () => {
    const provider = new PlunkEmailProvider(mockConfig);
    const spy = jest
      .spyOn(provider, 'sendMessage')
      .mockImplementation(async () => {
        // eslint-disable-next-line @typescript-eslint/no-explicit-any
        return {} as any;
      });
  
    await provider.sendMessage(mockNovuMessage);
  
    expect(spy).toBeCalled();
    expect(spy).toBeCalledWith({
      from: mockNovuMessage.from,
      to: mockNovuMessage.to,
      html: mockNovuMessage.html,
      subject: mockNovuMessage.subject,
    });
  });
  