diff options
author | Chocobozzz <me@florianbigard.com> | 2018-08-17 15:45:42 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-08-27 09:41:54 +0200 |
commit | 8a19bee1a1ee39f973bb37429e4f73c3f2873cdb (patch) | |
tree | 33c93ef19451d7e46d4be74ce0681359d2dcc70e /server/tests/api/users/users-multiple-servers.ts | |
parent | 965c4b22d0e4d2f853501e844e6ebbb861bd389d (diff) | |
download | PeerTube-8a19bee1a1ee39f973bb37429e4f73c3f2873cdb.tar.gz PeerTube-8a19bee1a1ee39f973bb37429e4f73c3f2873cdb.tar.zst PeerTube-8a19bee1a1ee39f973bb37429e4f73c3f2873cdb.zip |
Add ability to set a name to a channel
Diffstat (limited to 'server/tests/api/users/users-multiple-servers.ts')
-rw-r--r-- | server/tests/api/users/users-multiple-servers.ts | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/server/tests/api/users/users-multiple-servers.ts b/server/tests/api/users/users-multiple-servers.ts index 81489021b..575e04546 100644 --- a/server/tests/api/users/users-multiple-servers.ts +++ b/server/tests/api/users/users-multiple-servers.ts | |||
@@ -12,10 +12,9 @@ import { | |||
12 | getVideoChannelsList, | 12 | getVideoChannelsList, |
13 | removeUser, | 13 | removeUser, |
14 | updateMyUser, | 14 | updateMyUser, |
15 | userLogin, | 15 | userLogin |
16 | wait | ||
17 | } from '../../utils' | 16 | } from '../../utils' |
18 | import { flushTests, getMyUserInformation, killallServers, ServerInfo, testImage, updateMyAvatar, uploadVideo } from '../../utils/index' | 17 | import { getMyUserInformation, killallServers, ServerInfo, testImage, updateMyAvatar, uploadVideo } from '../../utils/index' |
19 | import { checkActorFilesWereRemoved, getAccount, getAccountsList } from '../../utils/users/accounts' | 18 | import { checkActorFilesWereRemoved, getAccount, getAccountsList } from '../../utils/users/accounts' |
20 | import { setAccessTokensToServers } from '../../utils/users/login' | 19 | import { setAccessTokensToServers } from '../../utils/users/login' |
21 | import { User } from '../../../../shared/models/users' | 20 | import { User } from '../../../../shared/models/users' |
@@ -172,7 +171,7 @@ describe('Test users with multiple servers', function () { | |||
172 | 171 | ||
173 | const resVideoChannels = await getVideoChannelsList(server.url, 0, 10) | 172 | const resVideoChannels = await getVideoChannelsList(server.url, 0, 10) |
174 | const videoChannelDeleted = resVideoChannels.body.data.find(a => { | 173 | const videoChannelDeleted = resVideoChannels.body.data.find(a => { |
175 | return a.displayName === 'Default user1 channel' && a.host === 'localhost:9001' | 174 | return a.displayName === 'Main user1 channel' && a.host === 'localhost:9001' |
176 | }) as VideoChannel | 175 | }) as VideoChannel |
177 | expect(videoChannelDeleted).not.to.be.undefined | 176 | expect(videoChannelDeleted).not.to.be.undefined |
178 | } | 177 | } |
@@ -189,7 +188,7 @@ describe('Test users with multiple servers', function () { | |||
189 | 188 | ||
190 | const resVideoChannels = await getVideoChannelsList(server.url, 0, 10) | 189 | const resVideoChannels = await getVideoChannelsList(server.url, 0, 10) |
191 | const videoChannelDeleted = resVideoChannels.body.data.find(a => { | 190 | const videoChannelDeleted = resVideoChannels.body.data.find(a => { |
192 | return a.name === 'Default user1 channel' && a.host === 'localhost:9001' | 191 | return a.name === 'Main user1 channel' && a.host === 'localhost:9001' |
193 | }) as VideoChannel | 192 | }) as VideoChannel |
194 | expect(videoChannelDeleted).to.be.undefined | 193 | expect(videoChannelDeleted).to.be.undefined |
195 | } | 194 | } |