mirror of
https://github.com/pavlobu/deskreen.git
synced 2025-05-17 07:50:17 -07:00
19 lines
420 B
TypeScript
19 lines
420 B
TypeScript
import http from 'http';
|
|
import SignalingServer from '../../../../app/server/index';
|
|
|
|
describe('signaling server', () => {
|
|
let server: typeof SignalingServer;
|
|
beforeEach(() => {
|
|
server = SignalingServer;
|
|
});
|
|
|
|
afterEach(() => {
|
|
server.stop();
|
|
});
|
|
|
|
it('start() should return http.Server', async () => {
|
|
const res = await server.start();
|
|
expect(res instanceof http.Server).toBe(true);
|
|
});
|
|
});
|