Skip to content

Commit

Permalink
test-WebRtcServer.ts: add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ibc committed Aug 11, 2023
1 parent c0a6988 commit a34ca02
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions node/src/tests/test-WebRtcServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,10 @@ test('router.createWebRtcTransport() with webRtcServer succeeds and webRtcServer
expect(onObserverWebRtcTransportUnhandled).toHaveBeenCalledTimes(1);
expect(onObserverWebRtcTransportUnhandled).toHaveBeenCalledWith(transport);
expect(transport.closed).toBe(true);
expect(transport.iceState).toBe('closed');
expect(transport.iceSelectedTuple).toBe(undefined);
expect(transport.dtlsState).toBe('closed');
expect(transport.sctpState).toBe(undefined);
expect(webRtcServer.webRtcTransportsForTesting.size).toBe(0);
expect(router.transportsForTesting.size).toBe(0);

Expand Down

0 comments on commit a34ca02

Please sign in to comment.