diff options
Diffstat (limited to 'server/tests/api/videos/video-comments.ts')
-rw-r--r-- | server/tests/api/videos/video-comments.ts | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/server/tests/api/videos/video-comments.ts b/server/tests/api/videos/video-comments.ts index f9bd23646..266824d58 100644 --- a/server/tests/api/videos/video-comments.ts +++ b/server/tests/api/videos/video-comments.ts | |||
@@ -5,13 +5,11 @@ import * as chai from 'chai' | |||
5 | import { | 5 | import { |
6 | cleanupTests, | 6 | cleanupTests, |
7 | CommentsCommand, | 7 | CommentsCommand, |
8 | createUser, | ||
9 | dateIsValid, | 8 | dateIsValid, |
10 | flushAndRunServer, | 9 | flushAndRunServer, |
11 | ServerInfo, | 10 | ServerInfo, |
12 | setAccessTokensToServers, | 11 | setAccessTokensToServers, |
13 | testImage, | 12 | testImage, |
14 | updateMyAvatar, | ||
15 | uploadVideo | 13 | uploadVideo |
16 | } from '@shared/extra-utils' | 14 | } from '@shared/extra-utils' |
17 | 15 | ||
@@ -39,19 +37,9 @@ describe('Test video comments', function () { | |||
39 | videoUUID = res.body.video.uuid | 37 | videoUUID = res.body.video.uuid |
40 | videoId = res.body.video.id | 38 | videoId = res.body.video.id |
41 | 39 | ||
42 | await updateMyAvatar({ | 40 | await server.usersCommand.updateMyAvatar({ fixture: 'avatar.png' }) |
43 | url: server.url, | ||
44 | accessToken: server.accessToken, | ||
45 | fixture: 'avatar.png' | ||
46 | }) | ||
47 | 41 | ||
48 | await createUser({ | 42 | userAccessTokenServer1 = await server.usersCommand.generateUserAndToken('user1') |
49 | url: server.url, | ||
50 | accessToken: server.accessToken, | ||
51 | username: 'user1', | ||
52 | password: 'password' | ||
53 | }) | ||
54 | userAccessTokenServer1 = await server.loginCommand.getAccessToken('user1', 'password') | ||
55 | 43 | ||
56 | command = server.commentsCommand | 44 | command = server.commentsCommand |
57 | }) | 45 | }) |