/* 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 { Video } from '@shared/models'
import { cleanupTests, createSingleServer, killallServers, PeerTubeServer, setAccessTokensToServers } from '@shared/server-commands'
-const expect = chai.expect
-
describe('Test videos history', function () {
let server: PeerTubeServer = null
let video1Id: number
let userAccessToken: string
before(async function () {
- this.timeout(30000)
+ this.timeout(120000)
server = await createSingleServer(1)
await setAccessTokensToServers([ server ])
// 10 seconds long
- const fixture = 'video_59fps.mp4'
+ const fixture = 'video_short1.webm'
{
const { id, uuid } = await server.videos.upload({ attributes: { name: 'video 1', fixture } })