diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-09 14:15:11 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:18 +0200 |
commit | 12edc1495a36b2199f1bf1ba37f50c7b694be382 (patch) | |
tree | 3abfe2e5b54076de73fbfa25386d0313fc3b7242 /server/tests/api/users | |
parent | a54618880c394ad7571f3f3222dc96ec2dd10d9a (diff) | |
download | PeerTube-12edc1495a36b2199f1bf1ba37f50c7b694be382.tar.gz PeerTube-12edc1495a36b2199f1bf1ba37f50c7b694be382.tar.zst PeerTube-12edc1495a36b2199f1bf1ba37f50c7b694be382.zip |
Introduce comments command
Diffstat (limited to 'server/tests/api/users')
-rw-r--r-- | server/tests/api/users/users.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/tests/api/users/users.ts b/server/tests/api/users/users.ts index ed670b3c9..4d255f340 100644 --- a/server/tests/api/users/users.ts +++ b/server/tests/api/users/users.ts | |||
@@ -4,7 +4,6 @@ import 'mocha' | |||
4 | import * as chai from 'chai' | 4 | import * as chai from 'chai' |
5 | import { HttpStatusCode } from '@shared/core-utils' | 5 | import { HttpStatusCode } from '@shared/core-utils' |
6 | import { | 6 | import { |
7 | addVideoCommentThread, | ||
8 | blockUser, | 7 | blockUser, |
9 | cleanupTests, | 8 | cleanupTests, |
10 | closeAllSequelize, | 9 | closeAllSequelize, |
@@ -983,7 +982,7 @@ describe('Test users', function () { | |||
983 | 982 | ||
984 | it('Should report correct video comments for user', async function () { | 983 | it('Should report correct video comments for user', async function () { |
985 | const text = 'super comment' | 984 | const text = 'super comment' |
986 | await addVideoCommentThread(server.url, user17AccessToken, videoId, text) | 985 | await server.commentsCommand.createThread({ token: user17AccessToken, videoId, text }) |
987 | 986 | ||
988 | const res = await getUserInformation(server.url, server.accessToken, user17Id, true) | 987 | const res = await getUserInformation(server.url, server.accessToken, user17Id, true) |
989 | const user: User = res.body | 988 | const user: User = res.body |