aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/videos/videos-filter.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/videos/videos-filter.ts')
-rw-r--r--server/tests/api/videos/videos-filter.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/server/tests/api/videos/videos-filter.ts b/server/tests/api/videos/videos-filter.ts
index 4a5a83ee6..af1541dbd 100644
--- a/server/tests/api/videos/videos-filter.ts
+++ b/server/tests/api/videos/videos-filter.ts
@@ -55,19 +55,19 @@ describe('Test videos filter', function () {
55 55
56 for (const server of servers) { 56 for (const server of servers) {
57 const moderator = { username: 'moderator', password: 'my super password' } 57 const moderator = { username: 'moderator', password: 'my super password' }
58 await server.usersCommand.create({ username: moderator.username, password: moderator.password, role: UserRole.MODERATOR }) 58 await server.users.create({ username: moderator.username, password: moderator.password, role: UserRole.MODERATOR })
59 server['moderatorAccessToken'] = await server.loginCommand.getAccessToken(moderator) 59 server['moderatorAccessToken'] = await server.login.getAccessToken(moderator)
60 60
61 await server.videosCommand.upload({ attributes: { name: 'public ' + server.serverNumber } }) 61 await server.videos.upload({ attributes: { name: 'public ' + server.serverNumber } })
62 62
63 { 63 {
64 const attributes = { name: 'unlisted ' + server.serverNumber, privacy: VideoPrivacy.UNLISTED } 64 const attributes = { name: 'unlisted ' + server.serverNumber, privacy: VideoPrivacy.UNLISTED }
65 await server.videosCommand.upload({ attributes }) 65 await server.videos.upload({ attributes })
66 } 66 }
67 67
68 { 68 {
69 const attributes = { name: 'private ' + server.serverNumber, privacy: VideoPrivacy.PRIVATE } 69 const attributes = { name: 'private ' + server.serverNumber, privacy: VideoPrivacy.PRIVATE }
70 await server.videosCommand.upload({ attributes }) 70 await server.videos.upload({ attributes })
71 } 71 }
72 } 72 }
73 73