import * as chai from 'chai'
import 'mocha'
import { VideoComment, VideoCommentThreadTree } from '../../../../shared/models/videos/video-comment.model'
-import { testVideoImage } from '../../utils'
+import { testImage } from '../../utils'
import {
dateIsValid, flushTests, killallServers, runServer, ServerInfo, setAccessTokensToServers, updateMyAvatar,
uploadVideo
let replyToDeleteId: number
before(async function () {
- this.timeout(10000)
+ this.timeout(30000)
await flushTests()
expect(comment.account.name).to.equal('root')
expect(comment.account.host).to.equal('localhost:9001')
- const test = await testVideoImage(server.url, 'avatar-resized', comment.account.avatar.path, '.png')
- expect(test).to.equal(true)
+ await testImage(server.url, 'avatar-resized', comment.account.avatar.path, '.png')
expect(comment.totalReplies).to.equal(0)
expect(dateIsValid(comment.createdAt as string)).to.be.true