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/object-storage/live.ts | 4 +--- server/tests/api/object-storage/video-imports.ts | 4 +--- server/tests/api/object-storage/videos.ts | 4 +--- 3 files changed, 3 insertions(+), 9 deletions(-) (limited to 'server/tests/api/object-storage') diff --git a/server/tests/api/object-storage/live.ts b/server/tests/api/object-storage/live.ts index 94fff8f6b..0958ffe0f 100644 --- a/server/tests/api/object-storage/live.ts +++ b/server/tests/api/object-storage/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 { expectStartWith } from '@server/tests/shared' import { areObjectStorageTestsDisabled } from '@shared/core-utils' import { HttpStatusCode, LiveVideoCreate, VideoFile, VideoPrivacy } from '@shared/models' @@ -21,8 +21,6 @@ import { waitUntilLiveWaitingOnAllServers } from '@shared/server-commands' -const expect = chai.expect - async function createLive (server: PeerTubeServer, permanent: boolean) { const attributes: LiveVideoCreate = { channelId: server.store.channel.id, diff --git a/server/tests/api/object-storage/video-imports.ts b/server/tests/api/object-storage/video-imports.ts index 141ead2f7..f688c7018 100644 --- a/server/tests/api/object-storage/video-imports.ts +++ b/server/tests/api/object-storage/video-imports.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 { expectStartWith, FIXTURE_URLS } from '@server/tests/shared' import { areObjectStorageTestsDisabled } from '@shared/core-utils' import { HttpStatusCode, VideoPrivacy } from '@shared/models' @@ -15,8 +15,6 @@ import { waitJobs } from '@shared/server-commands' -const expect = chai.expect - async function importVideo (server: PeerTubeServer) { const attributes = { name: 'import 2', diff --git a/server/tests/api/object-storage/videos.ts b/server/tests/api/object-storage/videos.ts index cdb68b962..3e65e1093 100644 --- a/server/tests/api/object-storage/videos.ts +++ b/server/tests/api/object-storage/videos.ts @@ -1,7 +1,7 @@ /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ import bytes from 'bytes' -import * as chai from 'chai' +import { expect } from 'chai' import { stat } from 'fs-extra' import { merge } from 'lodash' import { @@ -27,8 +27,6 @@ import { webtorrentAdd } from '@shared/server-commands' -const expect = chai.expect - async function checkFiles (options: { video: VideoDetails -- cgit v1.2.3