mirror of https://github.com/nocodb/nocodb
mertmit
2 years ago
1 changed files with 19 additions and 0 deletions
@ -0,0 +1,19 @@ |
|||||||
|
import { Test } from '@nestjs/testing'; |
||||||
|
import { SocketGateway } from './socket.gateway'; |
||||||
|
import type { TestingModule } from '@nestjs/testing'; |
||||||
|
|
||||||
|
describe('SocketGateway', () => { |
||||||
|
let gateway: SocketGateway; |
||||||
|
|
||||||
|
beforeEach(async () => { |
||||||
|
const module: TestingModule = await Test.createTestingModule({ |
||||||
|
providers: [SocketGateway], |
||||||
|
}).compile(); |
||||||
|
|
||||||
|
gateway = module.get<SocketGateway>(SocketGateway); |
||||||
|
}); |
||||||
|
|
||||||
|
it('should be defined', () => { |
||||||
|
expect(gateway).toBeDefined(); |
||||||
|
}); |
||||||
|
}); |
Loading…
Reference in new issue