From 863477173efa82a4412d2e522aa46462249f9199 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 17 Aug 2022 15:44:32 +0200 Subject: Cleanup tests imports --- server/tests/api/live/live-constraints.ts | 4 +--- server/tests/api/live/live-fast-restream.ts | 4 +--- server/tests/api/live/live-permanent.ts | 4 +--- server/tests/api/live/live-rtmps.ts | 4 +--- server/tests/api/live/live-save-replay.ts | 4 +--- server/tests/api/live/live-socket-messages.ts | 4 +--- server/tests/api/live/live.ts | 4 +--- 7 files changed, 7 insertions(+), 21 deletions(-) (limited to 'server/tests/api/live') diff --git a/server/tests/api/live/live-constraints.ts b/server/tests/api/live/live-constraints.ts index 876538302..64ef73a2a 100644 --- a/server/tests/api/live/live-constraints.ts +++ b/server/tests/api/live/live-constraints.ts @@ -1,6 +1,6 @@ /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ -import * as chai from 'chai' +import { expect } from 'chai' import { wait } from '@shared/core-utils' import { LiveVideoError, VideoPrivacy } from '@shared/models' import { @@ -18,8 +18,6 @@ import { } from '@shared/server-commands' import { checkLiveCleanup } from '../../shared' -const expect = chai.expect - describe('Test live constraints', function () { let servers: PeerTubeServer[] = [] let userId: number diff --git a/server/tests/api/live/live-fast-restream.ts b/server/tests/api/live/live-fast-restream.ts index d3dae9e98..502959258 100644 --- a/server/tests/api/live/live-fast-restream.ts +++ b/server/tests/api/live/live-fast-restream.ts @@ -1,6 +1,6 @@ /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ -import * as chai from 'chai' +import { expect } from 'chai' import { wait } from '@shared/core-utils' import { HttpStatusCode, LiveVideoCreate, VideoPrivacy } from '@shared/models' import { @@ -14,8 +14,6 @@ import { waitJobs } from '@shared/server-commands' -const expect = chai.expect - describe('Fast restream in live', function () { let server: PeerTubeServer diff --git a/server/tests/api/live/live-permanent.ts b/server/tests/api/live/live-permanent.ts index da392ba84..5d227200e 100644 --- a/server/tests/api/live/live-permanent.ts +++ b/server/tests/api/live/live-permanent.ts @@ -1,6 +1,6 @@ /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ -import * as chai from 'chai' +import { expect } from 'chai' import { wait } from '@shared/core-utils' import { LiveVideoCreate, VideoPrivacy, VideoState } from '@shared/models' import { @@ -15,8 +15,6 @@ import { waitJobs } from '@shared/server-commands' -const expect = chai.expect - describe('Permanent live', function () { let servers: PeerTubeServer[] = [] let videoUUID: string diff --git a/server/tests/api/live/live-rtmps.ts b/server/tests/api/live/live-rtmps.ts index 46cfef989..dcaee90cf 100644 --- a/server/tests/api/live/live-rtmps.ts +++ b/server/tests/api/live/live-rtmps.ts @@ -1,6 +1,6 @@ /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ -import * as chai from 'chai' +import { expect } from 'chai' import { buildAbsoluteFixturePath } from '@shared/core-utils' import { VideoPrivacy } from '@shared/models' import { @@ -15,8 +15,6 @@ import { waitUntilLivePublishedOnAllServers } from '@shared/server-commands' -const expect = chai.expect - describe('Test live RTMPS', function () { let server: PeerTubeServer let rtmpUrl: string diff --git a/server/tests/api/live/live-save-replay.ts b/server/tests/api/live/live-save-replay.ts index 80df93924..7014292d0 100644 --- a/server/tests/api/live/live-save-replay.ts +++ b/server/tests/api/live/live-save-replay.ts @@ -1,6 +1,6 @@ /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ -import * as chai from 'chai' +import { expect } from 'chai' import { FfmpegCommand } from 'fluent-ffmpeg' import { checkLiveCleanup } from '@server/tests/shared' import { wait } from '@shared/core-utils' @@ -22,8 +22,6 @@ import { waitUntilLiveWaitingOnAllServers } from '@shared/server-commands' -const expect = chai.expect - describe('Save replay setting', function () { let servers: PeerTubeServer[] = [] let liveVideoUUID: string diff --git a/server/tests/api/live/live-socket-messages.ts b/server/tests/api/live/live-socket-messages.ts index 7c2b449ac..62b7a6d22 100644 --- a/server/tests/api/live/live-socket-messages.ts +++ b/server/tests/api/live/live-socket-messages.ts @@ -1,6 +1,6 @@ /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ -import * as chai from 'chai' +import { expect } from 'chai' import { wait } from '@shared/core-utils' import { VideoPrivacy, VideoState } from '@shared/models' import { @@ -15,8 +15,6 @@ import { waitUntilLivePublishedOnAllServers } from '@shared/server-commands' -const expect = chai.expect - describe('Test live socket messages', function () { let servers: PeerTubeServer[] = [] diff --git a/server/tests/api/live/live.ts b/server/tests/api/live/live.ts index 8d3bf61a1..48982f4de 100644 --- a/server/tests/api/live/live.ts +++ b/server/tests/api/live/live.ts @@ -1,6 +1,6 @@ /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ -import * as chai from 'chai' +import { expect } from 'chai' import { basename, join } from 'path' import { ffprobePromise, getVideoStream } from '@server/helpers/ffmpeg' import { checkLiveSegmentHash, checkResolutionsInMasterPlaylist, getAllFiles, testImage } from '@server/tests/shared' @@ -32,8 +32,6 @@ import { waitUntilLivePublishedOnAllServers } from '@shared/server-commands' -const expect = chai.expect - describe('Test live', function () { let servers: PeerTubeServer[] = [] let commands: LiveCommand[] -- cgit v1.2.3