提交 84ed2528 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

test/test-PlainTransport.js: fix typos

上级 7b062987
...@@ -296,7 +296,7 @@ test('router.createPlainTransport() with non bindable IP rejects with Error', as ...@@ -296,7 +296,7 @@ test('router.createPlainTransport() with non bindable IP rejects with Error', as
.toThrow(Error); .toThrow(Error);
}, 2000); }, 2000);
test('plaintRtpTransport.getStats() succeeds', async () => test('plainTransport.getStats() succeeds', async () =>
{ {
const data = await transport.getStats(); const data = await transport.getStats();
...@@ -328,7 +328,7 @@ test('plaintRtpTransport.getStats() succeeds', async () => ...@@ -328,7 +328,7 @@ test('plaintRtpTransport.getStats() succeeds', async () =>
expect(data[0].sendBitrate).toBe(0); expect(data[0].sendBitrate).toBe(0);
}, 2000); }, 2000);
test('plaintRtpTransport.connect() succeeds', async () => test('plainTransport.connect() succeeds', async () =>
{ {
// No SRTP enabled so passing srtpParameters must fail. // No SRTP enabled so passing srtpParameters must fail.
await expect(transport.connect( await expect(transport.connect(
...@@ -362,7 +362,7 @@ test('plaintRtpTransport.connect() succeeds', async () => ...@@ -362,7 +362,7 @@ test('plaintRtpTransport.connect() succeeds', async () =>
expect(transport.rtcpTuple.protocol).toBe('udp'); expect(transport.rtcpTuple.protocol).toBe('udp');
}, 2000); }, 2000);
test('plaintRtpTransport.connect() with wrong arguments rejects with TypeError', async () => test('plainTransport.connect() with wrong arguments rejects with TypeError', async () =>
{ {
await expect(transport.connect({})) await expect(transport.connect({}))
.rejects .rejects
...@@ -381,7 +381,7 @@ test('plaintRtpTransport.connect() with wrong arguments rejects with TypeError', ...@@ -381,7 +381,7 @@ test('plaintRtpTransport.connect() with wrong arguments rejects with TypeError',
.toThrow(TypeError); .toThrow(TypeError);
}, 2000); }, 2000);
test('PlaintRtpTransport methods reject if closed', async () => test('PlainTransport methods reject if closed', async () =>
{ {
const onObserverClose = jest.fn(); const onObserverClose = jest.fn();
...@@ -404,9 +404,9 @@ test('PlaintRtpTransport methods reject if closed', async () => ...@@ -404,9 +404,9 @@ test('PlaintRtpTransport methods reject if closed', async () =>
.toThrow(Error); .toThrow(Error);
}, 2000); }, 2000);
test('PlaintRtpTransport emits "routerclose" if Router is closed', async () => test('PlainTransport emits "routerclose" if Router is closed', async () =>
{ {
// We need different Router and PlaintRtpTransport instances here. // We need different Router and PlainTransport instances here.
const router2 = await worker.createRouter({ mediaCodecs }); const router2 = await worker.createRouter({ mediaCodecs });
const transport2 = const transport2 =
await router2.createPlainTransport({ listenIp: '127.0.0.1' }); await router2.createPlainTransport({ listenIp: '127.0.0.1' });
...@@ -424,7 +424,7 @@ test('PlaintRtpTransport emits "routerclose" if Router is closed', async () => ...@@ -424,7 +424,7 @@ test('PlaintRtpTransport emits "routerclose" if Router is closed', async () =>
expect(transport2.closed).toBe(true); expect(transport2.closed).toBe(true);
}, 2000); }, 2000);
test('PlaintRtpTransport emits "routerclose" if Worker is closed', async () => test('PlainTransport emits "routerclose" if Worker is closed', async () =>
{ {
const onObserverClose = jest.fn(); const onObserverClose = jest.fn();
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论