]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix lint
authorChocobozzz <me@florianbigard.com>
Fri, 22 Apr 2022 08:54:05 +0000 (10:54 +0200)
committerChocobozzz <me@florianbigard.com>
Fri, 22 Apr 2022 08:54:05 +0000 (10:54 +0200)
server/models/video/video-live.ts
server/tests/api/check-params/live.ts
server/tests/api/live/live.ts

index 68e3811059acef2e3f0119b8befb8ea28c3b11d4..d2788ef4f7d16d2fbd3b2aa933f9065309a47374 100644 (file)
@@ -2,7 +2,7 @@ import { AllowNull, BelongsTo, Column, CreatedAt, DataType, DefaultScope, Foreig
 import { CONFIG } from '@server/initializers/config'
 import { WEBSERVER } from '@server/initializers/constants'
 import { MVideoLive, MVideoLiveVideo } from '@server/types/models'
-import { LiveVideo, LiveVideoLatencyMode, VideoPrivacy, VideoState } from '@shared/models'
+import { LiveVideo, LiveVideoLatencyMode, VideoState } from '@shared/models'
 import { AttributesOnly } from '@shared/typescript-utils'
 import { VideoModel } from './video'
 import { VideoBlacklistModel } from './video-blacklist'
index d4a81c4f6c917ac5a38bc72d8ae606506391bf3e..8d520da0d15a5362bc089808759ad91170e8c654 100644 (file)
@@ -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 })
     })
index 6e7b77bcef7a94a650696c04b9fa7292b9cf97f1..b8c4c1e293390899e53ca4e88a5906bf16a4881f 100644 (file)
@@ -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