/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
-import 'mocha'
-import * as chai from 'chai'
+import { expect } from 'chai'
+import { wait } from '@shared/core-utils'
+import { VideoPrivacy } from '@shared/models'
import {
cleanupTests,
createMultipleServers,
doubleFollow,
PeerTubeServer,
setAccessTokensToServers,
- wait,
waitJobs
-} from '@shared/extra-utils'
-import { VideoPrivacy } from '@shared/models'
-
-const expect = chai.expect
+} from '@shared/server-commands'
function in10Seconds () {
const now = new Date()
})
it('Should upload a video and schedule an update in 10 seconds', async function () {
- this.timeout(10000)
-
const attributes = {
name: 'video 1',
privacy: VideoPrivacy.PRIVATE,
})
it('Should upload a video without scheduling an update', async function () {
- this.timeout(10000)
-
const attributes = {
name: 'video 2',
privacy: VideoPrivacy.PRIVATE
})
it('Should update a video by scheduling an update', async function () {
- this.timeout(10000)
-
const attributes = {
name: 'video 2 updated',
scheduleUpdate: {