import 'mocha'
import * as chai from 'chai'
-import { join } from 'path'
import * as request from 'supertest'
import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes'
import {
addVideoChannel,
+ buildAbsoluteFixturePath,
checkTmpIsEmpty,
checkVideoFilesWereRemoved,
cleanupTests,
expect(deletedComment.text).to.equal('')
expect(deletedComment.inReplyToCommentId).to.be.null
expect(deletedComment.account).to.be.null
- expect(deletedComment.totalReplies).to.equal(3)
+ expect(deletedComment.totalReplies).to.equal(2)
expect(dateIsValid(deletedComment.createdAt as string)).to.be.true
expect(dateIsValid(deletedComment.updatedAt as string)).to.be.true
expect(dateIsValid(deletedComment.deletedAt as string)).to.be.true
expect(comment.createdAt).to.not.be.null
expect(comment.deletedAt).to.not.be.null
expect(comment.account).to.be.null
- expect(comment.totalReplies).to.equal(3)
+ expect(comment.totalReplies).to.equal(2)
}
}
})
.field('privacy', '1')
.field('channelId', '1')
- const filePath = join(__dirname, '..', '..', 'fixtures', 'video_short.webm')
-
- await req.attach('videofile', filePath)
+ await req.attach('videofile', buildAbsoluteFixturePath('video_short.webm'))
.expect(HttpStatusCode.OK_200)
await waitJobs(servers)