Cleanup tests imports

This commit is contained in:
Chocobozzz
2022-08-17 15:44:32 +02:00
parent e0faa8ad6e
commit 863477173e
103 changed files with 106 additions and 304 deletions

View File

@@ -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 { getAudioStream, getVideoStreamDimensionsInfo } from '@server/helpers/ffmpeg'
import {
cleanupTests,
@@ -11,8 +11,6 @@ import {
waitJobs
} from '@shared/server-commands'
const expect = chai.expect
describe('Test audio only video transcoding', function () {
let servers: PeerTubeServer[] = []
let videoUUID: string

View File

@@ -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 { checkResolutionsInMasterPlaylist, expectStartWith } from '@server/tests/shared'
import { areObjectStorageTestsDisabled } from '@shared/core-utils'
import { HttpStatusCode, VideoDetails } from '@shared/models'
@@ -17,8 +17,6 @@ import {
waitJobs
} from '@shared/server-commands'
const expect = chai.expect
async function checkFilesInObjectStorage (video: VideoDetails) {
for (const file of video.files) {
expectStartWith(file.fileUrl, ObjectStorageCommand.getWebTorrentBaseUrl())

View File

@@ -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 {
checkDirectoryIsEmpty,
@@ -25,8 +25,6 @@ import {
} from '@shared/server-commands'
import { DEFAULT_AUDIO_RESOLUTION } from '../../../initializers/constants'
const expect = chai.expect
async function checkHlsPlaylist (options: {
servers: PeerTubeServer[]
videoUUID: string