From 5d9b867ed30cbd40025d9c1223caff43c3cd0d82 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 22 Apr 2022 10:54:05 +0200 Subject: Fix lint --- server/tests/api/check-params/live.ts | 1 - server/tests/api/live/live.ts | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'server/tests/api') 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 () { describe('When getting live information', function () { - it('Should fail with a bad access token', async function () { await command.get({ token: 'toto', videoId: video.id, expectedStatus: HttpStatusCode.UNAUTHORIZED_401 }) }) 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 () { expect(live.rtmpUrl).to.equal('rtmp://' + server.hostname + ':' + servers[0].rtmpPort + '/live') expect(live.streamKey).to.not.be.empty } else { - expect(live.rtmpUrl).to.be.null - expect(live.streamKey).to.be.null + expect(live.rtmpUrl).to.not.exist + expect(live.streamKey).to.not.exist } expect(live.saveReplay).to.be.true @@ -193,8 +193,8 @@ describe('Test live', function () { expect(live.rtmpUrl).to.equal('rtmp://' + server.hostname + ':' + servers[0].rtmpPort + '/live') expect(live.streamKey).to.not.be.empty } else { - expect(live.rtmpUrl).to.be.null - expect(live.streamKey).to.be.null + expect(live.rtmpUrl).to.not.exist + expect(live.streamKey).to.not.exist } expect(live.saveReplay).to.be.false -- cgit v1.2.3