mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Cleanup tests imports
This commit is contained in:
@@ -2,12 +2,13 @@
|
||||
|
||||
import 'mocha'
|
||||
|
||||
import { flushAndRunMultipleServers, flushTests, killallServers, makePOSTAPRequest, makeFollowRequest, ServerInfo } from '../../utils'
|
||||
import { flushAndRunMultipleServers, flushTests, killallServers, ServerInfo } from '../../utils'
|
||||
import { HTTP_SIGNATURE } from '../../../initializers'
|
||||
import { buildDigest, buildGlobalHeaders } from '../../../lib/job-queue/handlers/utils/activitypub-http-utils'
|
||||
import * as chai from 'chai'
|
||||
import { setActorField } from '../../utils/miscs/sql'
|
||||
import { activityPubContextify, buildSignedActivity } from '../../../helpers/activitypub'
|
||||
import { makeFollowRequest, makePOSTAPRequest } from '../../utils/requests/activitypub'
|
||||
|
||||
const expect = chai.expect
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import './blocklist'
|
||||
import './user-subscriptions'
|
||||
import './users'
|
||||
import './users-verification'
|
||||
import './users-multiple-servers'
|
||||
import './users-verification'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* tslint:disable:no-unused-expression */
|
||||
|
||||
import * as chai from 'chai'
|
||||
import * as lodash from 'lodash'
|
||||
import { orderBy } from 'lodash'
|
||||
import 'mocha'
|
||||
import {
|
||||
addVideoToBlacklist,
|
||||
@@ -22,7 +22,6 @@ import { waitJobs } from '../../utils/server/jobs'
|
||||
import { VideoAbuse } from '../../../../shared/models/videos'
|
||||
|
||||
const expect = chai.expect
|
||||
const orderBy = lodash.orderBy
|
||||
|
||||
describe('Test video blacklist management', function () {
|
||||
let servers: ServerInfo[] = []
|
||||
|
||||
@@ -7,10 +7,12 @@ import {
|
||||
createUser,
|
||||
doubleFollow,
|
||||
flushAndRunMultipleServers,
|
||||
getVideoChannelVideos, serverLogin, testImage,
|
||||
getVideoChannelVideos,
|
||||
testImage,
|
||||
updateVideo,
|
||||
updateVideoChannelAvatar,
|
||||
uploadVideo, wait, userLogin
|
||||
uploadVideo,
|
||||
userLogin
|
||||
} from '../../utils'
|
||||
import {
|
||||
addVideoChannel,
|
||||
|
||||
@@ -16,7 +16,6 @@ import {
|
||||
uploadVideo,
|
||||
wait
|
||||
} from '../../utils'
|
||||
import { join } from 'path'
|
||||
import { waitJobs } from '../../utils/server/jobs'
|
||||
|
||||
const expect = chai.expect
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
import * as chai from 'chai'
|
||||
import 'mocha'
|
||||
import { omit } from 'lodash'
|
||||
import * as ffmpeg from 'fluent-ffmpeg'
|
||||
import { getMaxBitrate, VideoDetails, VideoResolution, VideoState } from '../../../../shared/models/videos'
|
||||
import { audio, getVideoFileBitrate, getVideoFileFPS, getVideoFileResolution } from '../../../helpers/ffmpeg-utils'
|
||||
import {
|
||||
buildAbsoluteFixturePath,
|
||||
doubleFollow,
|
||||
flushAndRunMultipleServers,
|
||||
generateHighBitrateVideo,
|
||||
getMyVideos,
|
||||
getVideo,
|
||||
getVideosList,
|
||||
@@ -18,12 +18,10 @@ import {
|
||||
ServerInfo,
|
||||
setAccessTokensToServers,
|
||||
uploadVideo,
|
||||
webtorrentAdd,
|
||||
generateHighBitrateVideo
|
||||
webtorrentAdd
|
||||
} from '../../utils'
|
||||
import { join } from 'path'
|
||||
import { waitJobs } from '../../utils/server/jobs'
|
||||
import { pathExists } from 'fs-extra'
|
||||
import { VIDEO_TRANSCODING_FPS } from '../../../../server/initializers/constants'
|
||||
|
||||
const expect = chai.expect
|
||||
|
||||
Reference in New Issue
Block a user