Skip to content

Commit

Permalink
Fix providers for test
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan-vdm committed Sep 27, 2023
1 parent 134a9d0 commit f727af4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/api/src/app/socket/socket.gateway.spec.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import { Test, TestingModule } from '@nestjs/testing';
import { SocketGateway } from './socket.gateway';
import { SocketServiceService } from './socket-service.service';
import { EventService } from '@event-participation-trends/api/event/feature';
import { CommandBus, QueryBus } from '@nestjs/cqrs';

describe('SocketGateway', () => {
let gateway: SocketGateway;

beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
providers: [SocketGateway, SocketServiceService],
providers: [SocketGateway, SocketServiceService, EventService, CommandBus, QueryBus],
}).compile();

gateway = module.get<SocketGateway>(SocketGateway);
Expand Down

0 comments on commit f727af4

Please sign in to comment.