aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api')
-rw-r--r--server/tests/api/check-params/live.ts1
-rw-r--r--server/tests/api/live/live.ts8
2 files changed, 4 insertions, 5 deletions
diff --git a/server/tests/api/check-params/live.ts b/server/tests/api/check-params/live.ts
index d4a81c4f6..8d520da0d 100644
--- a/server/tests/api/check-params/live.ts
+++ b/server/tests/api/check-params/live.ts
@@ -341,7 +341,6 @@ describe('Test video lives API validator', function () {
341 341
342 describe('When getting live information', function () { 342 describe('When getting live information', function () {
343 343
344
345 it('Should fail with a bad access token', async function () { 344 it('Should fail with a bad access token', async function () {
346 await command.get({ token: 'toto', videoId: video.id, expectedStatus: HttpStatusCode.UNAUTHORIZED_401 }) 345 await command.get({ token: 'toto', videoId: video.id, expectedStatus: HttpStatusCode.UNAUTHORIZED_401 })
347 }) 346 })
diff --git a/server/tests/api/live/live.ts b/server/tests/api/live/live.ts
index 6e7b77bce..b8c4c1e29 100644
--- a/server/tests/api/live/live.ts
+++ b/server/tests/api/live/live.ts
@@ -131,8 +131,8 @@ describe('Test live', function () {
131 expect(live.rtmpUrl).to.equal('rtmp://' + server.hostname + ':' + servers[0].rtmpPort + '/live') 131 expect(live.rtmpUrl).to.equal('rtmp://' + server.hostname + ':' + servers[0].rtmpPort + '/live')
132 expect(live.streamKey).to.not.be.empty 132 expect(live.streamKey).to.not.be.empty
133 } else { 133 } else {
134 expect(live.rtmpUrl).to.be.null 134 expect(live.rtmpUrl).to.not.exist
135 expect(live.streamKey).to.be.null 135 expect(live.streamKey).to.not.exist
136 } 136 }
137 137
138 expect(live.saveReplay).to.be.true 138 expect(live.saveReplay).to.be.true
@@ -193,8 +193,8 @@ describe('Test live', function () {
193 expect(live.rtmpUrl).to.equal('rtmp://' + server.hostname + ':' + servers[0].rtmpPort + '/live') 193 expect(live.rtmpUrl).to.equal('rtmp://' + server.hostname + ':' + servers[0].rtmpPort + '/live')
194 expect(live.streamKey).to.not.be.empty 194 expect(live.streamKey).to.not.be.empty
195 } else { 195 } else {
196 expect(live.rtmpUrl).to.be.null 196 expect(live.rtmpUrl).to.not.exist
197 expect(live.streamKey).to.be.null 197 expect(live.streamKey).to.not.exist
198 } 198 }
199 199
200 expect(live.saveReplay).to.be.false 200 expect(live.saveReplay).to.be.false