Skip to content

Commit 78790aa

Browse files
Copilotmoufmouf
andcommitted
Address code review feedback - cleanup imports and formatting
Co-authored-by: moufmouf <1290952+moufmouf@users.noreply.github.com>
1 parent 3d07dc1 commit 78790aa

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

test/multistream.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import common from './common.js'
22
import Peer from '../index.js'
33
import { test } from 'vitest'
44

5-
test('multistream', function (t) {
5+
test('multistream', function () {
66
if (!process.browser) return
77
if (common.isBrowser('ios')) {
88
t.pass('Skip on iOS emulator which does not support this reliably') // iOS emulator issue #486
@@ -47,7 +47,7 @@ test('multistream', function (t) {
4747
})
4848
})
4949

50-
test('multistream (track event)', function (t) {
50+
test('multistream (track event)', function () {
5151
if (!process.browser) return
5252
t.plan(20)
5353

@@ -89,7 +89,7 @@ test('multistream (track event)', function (t) {
8989
})
9090
})
9191

92-
test('multistream on non-initiator only', function (t) {
92+
test('multistream on non-initiator only', function () {
9393
if (!process.browser) return
9494
t.plan(30)
9595

@@ -128,7 +128,7 @@ test('multistream on non-initiator only', function (t) {
128128
})
129129
})
130130

131-
test('delayed stream on non-initiator', function (t) {
131+
test('delayed stream on non-initiator', function () {
132132
if (!process.browser) return
133133
if (common.isBrowser('ios')) {
134134
t.pass('Skip on iOS which does not support this reliably')
@@ -165,7 +165,7 @@ test('delayed stream on non-initiator', function (t) {
165165
})
166166
})
167167

168-
test('incremental multistream', function (t) {
168+
test('incremental multistream', function () {
169169
if (!process.browser) return
170170
if (common.isBrowser('ios')) {
171171
t.pass('Skip on iOS emulator which does not support this reliably') // iOS emulator issue #486
@@ -230,7 +230,7 @@ test('incremental multistream', function (t) {
230230
})
231231
})
232232

233-
test('incremental multistream (track event)', function (t) {
233+
test('incremental multistream (track event)', function () {
234234
if (!process.browser) return
235235
t.plan(22)
236236

@@ -290,7 +290,7 @@ test('incremental multistream (track event)', function (t) {
290290
})
291291
})
292292

293-
test('incremental multistream on non-initiator only', function (t) {
293+
test('incremental multistream on non-initiator only', function () {
294294
if (!process.browser) return
295295
if (common.isBrowser('ios')) {
296296
t.pass('Skip on iOS emulator which does not support this reliably') // iOS emulator issue #486
@@ -340,7 +340,7 @@ test('incremental multistream on non-initiator only', function (t) {
340340
})
341341
})
342342

343-
test('incremental multistream on non-initiator only (track event)', function (t) {
343+
test('incremental multistream on non-initiator only (track event)', function () {
344344
if (!process.browser) return
345345
t.plan(12)
346346

@@ -385,7 +385,7 @@ test('incremental multistream on non-initiator only (track event)', function (t)
385385
})
386386
})
387387

388-
test('addStream after removeStream', function (t) {
388+
test('addStream after removeStream', function () {
389389
if (!process.browser) return
390390
if (common.isBrowser('ios')) {
391391
t.pass('Skip on iOS which does not support this reliably')
@@ -420,7 +420,7 @@ test('addStream after removeStream', function (t) {
420420
})
421421
})
422422

423-
test('removeTrack immediately', function (t) {
423+
test('removeTrack immediately', function () {
424424
if (!process.browser) return
425425
t.plan(2)
426426

@@ -459,7 +459,7 @@ test('removeTrack immediately', function (t) {
459459
})
460460
})
461461

462-
test('replaceTrack', function (t) {
462+
test('replaceTrack', function () {
463463
if (!process.browser) return
464464
t.plan(4)
465465

test/negotiation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import common from './common.js'
22
import Peer from '../index.js'
3-
import { test, expect, vi } from 'vitest'
3+
import { test, expect } from 'vitest'
44

55
test('single negotiation', function () {
66
if (!process.browser) return

vitest.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@ export default defineConfig({
1010
exclude: ['node_modules/**', 'test/common.ts', 'test/common.js']
1111
}
1212
})
13-

0 commit comments

Comments
 (0)