diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-16 09:04:35 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:18 +0200 |
commit | 89d241a79c262b9775c233b73cff080043ebb5e6 (patch) | |
tree | cb3b6cb431d25d891ef4e02f66c61d252d17048f /server/tests/api/videos/videos-filter.ts | |
parent | d23dd9fbfc4d26026352c10f81d2795ceaf2908a (diff) | |
download | PeerTube-89d241a79c262b9775c233b73cff080043ebb5e6.tar.gz PeerTube-89d241a79c262b9775c233b73cff080043ebb5e6.tar.zst PeerTube-89d241a79c262b9775c233b73cff080043ebb5e6.zip |
Shorter server command names
Diffstat (limited to 'server/tests/api/videos/videos-filter.ts')
-rw-r--r-- | server/tests/api/videos/videos-filter.ts | 10 |
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 | ||