diff options
Diffstat (limited to 'server/tests/api/videos/video-channels.ts')
-rw-r--r-- | server/tests/api/videos/video-channels.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/server/tests/api/videos/video-channels.ts b/server/tests/api/videos/video-channels.ts index 04e7b8c6a..d24b8ab0b 100644 --- a/server/tests/api/videos/video-channels.ts +++ b/server/tests/api/videos/video-channels.ts | |||
@@ -63,7 +63,7 @@ describe('Test video channels', function () { | |||
63 | description: 'super video channel description', | 63 | description: 'super video channel description', |
64 | support: 'super video channel support text' | 64 | support: 'super video channel support text' |
65 | } | 65 | } |
66 | const res = await addVideoChannel(servers[0].url, servers[0].accessToken, accountUUID, videoChannel) | 66 | const res = await addVideoChannel(servers[0].url, servers[0].accessToken, videoChannel) |
67 | videoChannelId = res.body.videoChannel.id | 67 | videoChannelId = res.body.videoChannel.id |
68 | videoChannelUUID = res.body.videoChannel.uuid | 68 | videoChannelUUID = res.body.videoChannel.uuid |
69 | 69 | ||
@@ -130,7 +130,7 @@ describe('Test video channels', function () { | |||
130 | support: 'video channel support text updated' | 130 | support: 'video channel support text updated' |
131 | } | 131 | } |
132 | 132 | ||
133 | await updateVideoChannel(servers[0].url, servers[0].accessToken, accountUUID, videoChannelId, videoChannelAttributes) | 133 | await updateVideoChannel(servers[0].url, servers[0].accessToken, videoChannelId, videoChannelAttributes) |
134 | 134 | ||
135 | await wait(3000) | 135 | await wait(3000) |
136 | }) | 136 | }) |
@@ -149,7 +149,7 @@ describe('Test video channels', function () { | |||
149 | }) | 149 | }) |
150 | 150 | ||
151 | it('Should get video channel', async function () { | 151 | it('Should get video channel', async function () { |
152 | const res = await getVideoChannel(servers[0].url, accountUUID, videoChannelId) | 152 | const res = await getVideoChannel(servers[0].url, videoChannelId) |
153 | 153 | ||
154 | const videoChannel = res.body | 154 | const videoChannel = res.body |
155 | expect(videoChannel.displayName).to.equal('video channel updated') | 155 | expect(videoChannel.displayName).to.equal('video channel updated') |
@@ -161,7 +161,7 @@ describe('Test video channels', function () { | |||
161 | this.timeout(10000) | 161 | this.timeout(10000) |
162 | 162 | ||
163 | for (const server of servers) { | 163 | for (const server of servers) { |
164 | const res = await getVideoChannelVideos(server.url, server.accessToken, accountUUID, videoChannelUUID, 0, 5) | 164 | const res = await getVideoChannelVideos(server.url, server.accessToken, videoChannelUUID, 0, 5) |
165 | expect(res.body.total).to.equal(1) | 165 | expect(res.body.total).to.equal(1) |
166 | expect(res.body.data).to.be.an('array') | 166 | expect(res.body.data).to.be.an('array') |
167 | expect(res.body.data).to.have.lengthOf(1) | 167 | expect(res.body.data).to.have.lengthOf(1) |
@@ -170,7 +170,7 @@ describe('Test video channels', function () { | |||
170 | }) | 170 | }) |
171 | 171 | ||
172 | it('Should delete video channel', async function () { | 172 | it('Should delete video channel', async function () { |
173 | await deleteVideoChannel(servers[0].url, servers[0].accessToken, accountUUID, videoChannelId) | 173 | await deleteVideoChannel(servers[0].url, servers[0].accessToken, videoChannelId) |
174 | }) | 174 | }) |
175 | 175 | ||
176 | it('Should have video channel deleted', async function () { | 176 | it('Should have video channel deleted', async function () { |