]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/api/videos/video-comments.ts
Introduce config command
[github/Chocobozzz/PeerTube.git] / server / tests / api / videos / video-comments.ts
index 615e0ea45a5fe1658d62ef9627233d3d0fe754a6..b6b00230726aa3e419b6472acd05aa6028f770b8 100644 (file)
@@ -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')