X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fvideos%2Fvideo-comments.ts;h=b6b00230726aa3e419b6472acd05aa6028f770b8;hb=65e6e2602c0d5521f3a6740f7469bb92830ecb53;hp=615e0ea45a5fe1658d62ef9627233d3d0fe754a6;hpb=9d6b9d10ef8cbef39e89bc709285abffb0d8caa1;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/videos/video-comments.ts b/server/tests/api/videos/video-comments.ts index 615e0ea45..b6b002307 100644 --- a/server/tests/api/videos/video-comments.ts +++ b/server/tests/api/videos/video-comments.ts @@ -2,7 +2,7 @@ import 'mocha' import * as chai from 'chai' - +import { VideoComment, VideoCommentAdmin, VideoCommentThreadTree } from '@shared/models' import { cleanupTests, testImage } from '../../../../shared/extra-utils' import { createUser, @@ -22,7 +22,6 @@ import { getVideoCommentThreads, getVideoThreadComments } from '../../../../shared/extra-utils/videos/video-comments' -import { VideoComment, VideoCommentAdmin, VideoCommentThreadTree } from '../../../../shared/models/videos/video-comment.model' const expect = chai.expect @@ -232,7 +231,7 @@ describe('Test video comments', function () { expect(res.body.data[0].isDeleted).to.be.true expect(res.body.data[0].deletedAt).to.not.be.null expect(res.body.data[0].account).to.be.null - expect(res.body.data[0].totalReplies).to.equal(3) + expect(res.body.data[0].totalReplies).to.equal(2) expect(res.body.data[1].text).to.equal('super thread 2') expect(res.body.data[1].totalReplies).to.equal(0) expect(res.body.data[2].text).to.equal('super thread 3')