my-chat-room/apps/api/src/app/app.gateway.spec.ts

19 lines
439 B
TypeScript

import { Test, TestingModule } from '@nestjs/testing';
import { AppGateway } from './app.gateway';
describe('AppGateway', () => {
let gateway: AppGateway;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
providers: [AppGateway],
}).compile();
gateway = module.get<AppGateway>(AppGateway);
});
it('should be defined', () => {
expect(gateway).toBeDefined();
});
});