diff options
Diffstat (limited to 'server/tests/api/videos/video-comments.ts')
-rw-r--r-- | server/tests/api/videos/video-comments.ts | 5 |
1 files changed, 2 insertions, 3 deletions
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 @@ | |||
2 | 2 | ||
3 | import 'mocha' | 3 | import 'mocha' |
4 | import * as chai from 'chai' | 4 | import * as chai from 'chai' |
5 | 5 | import { VideoComment, VideoCommentAdmin, VideoCommentThreadTree } from '@shared/models' | |
6 | import { cleanupTests, testImage } from '../../../../shared/extra-utils' | 6 | import { cleanupTests, testImage } from '../../../../shared/extra-utils' |
7 | import { | 7 | import { |
8 | createUser, | 8 | createUser, |
@@ -22,7 +22,6 @@ import { | |||
22 | getVideoCommentThreads, | 22 | getVideoCommentThreads, |
23 | getVideoThreadComments | 23 | getVideoThreadComments |
24 | } from '../../../../shared/extra-utils/videos/video-comments' | 24 | } from '../../../../shared/extra-utils/videos/video-comments' |
25 | import { VideoComment, VideoCommentAdmin, VideoCommentThreadTree } from '../../../../shared/models/videos/video-comment.model' | ||
26 | 25 | ||
27 | const expect = chai.expect | 26 | const expect = chai.expect |
28 | 27 | ||
@@ -232,7 +231,7 @@ describe('Test video comments', function () { | |||
232 | expect(res.body.data[0].isDeleted).to.be.true | 231 | expect(res.body.data[0].isDeleted).to.be.true |
233 | expect(res.body.data[0].deletedAt).to.not.be.null | 232 | expect(res.body.data[0].deletedAt).to.not.be.null |
234 | expect(res.body.data[0].account).to.be.null | 233 | expect(res.body.data[0].account).to.be.null |
235 | expect(res.body.data[0].totalReplies).to.equal(3) | 234 | expect(res.body.data[0].totalReplies).to.equal(2) |
236 | expect(res.body.data[1].text).to.equal('super thread 2') | 235 | expect(res.body.data[1].text).to.equal('super thread 2') |
237 | expect(res.body.data[1].totalReplies).to.equal(0) | 236 | expect(res.body.data[1].totalReplies).to.equal(0) |
238 | expect(res.body.data[2].text).to.equal('super thread 3') | 237 | expect(res.body.data[2].text).to.equal('super thread 3') |