aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-04-22 10:54:05 +0200
committerChocobozzz <me@florianbigard.com>2022-04-22 10:54:05 +0200
commit5d9b867ed30cbd40025d9c1223caff43c3cd0d82 (patch)
treea767981ff97eb476ce323309cc7ecb57545385e2 /server
parent961cbe4269e5f34639e29310fb3d90a6cb1bd6bc (diff)
downloadPeerTube-5d9b867ed30cbd40025d9c1223caff43c3cd0d82.tar.gz
PeerTube-5d9b867ed30cbd40025d9c1223caff43c3cd0d82.tar.zst
PeerTube-5d9b867ed30cbd40025d9c1223caff43c3cd0d82.zip
Fix lint
Diffstat (limited to 'server')
-rw-r--r--server/models/video/video-live.ts2
-rw-r--r--server/tests/api/check-params/live.ts1
-rw-r--r--server/tests/api/live/live.ts8
3 files changed, 5 insertions, 6 deletions
diff --git a/server/models/video/video-live.ts b/server/models/video/video-live.ts
index 68e381105..d2788ef4f 100644
--- a/server/models/video/video-live.ts
+++ b/server/models/video/video-live.ts
@@ -2,7 +2,7 @@ import { AllowNull, BelongsTo, Column, CreatedAt, DataType, DefaultScope, Foreig
2import { CONFIG } from '@server/initializers/config' 2import { CONFIG } from '@server/initializers/config'
3import { WEBSERVER } from '@server/initializers/constants' 3import { WEBSERVER } from '@server/initializers/constants'
4import { MVideoLive, MVideoLiveVideo } from '@server/types/models' 4import { MVideoLive, MVideoLiveVideo } from '@server/types/models'
5import { LiveVideo, LiveVideoLatencyMode, VideoPrivacy, VideoState } from '@shared/models' 5import { LiveVideo, LiveVideoLatencyMode, VideoState } from '@shared/models'
6import { AttributesOnly } from '@shared/typescript-utils' 6import { AttributesOnly } from '@shared/typescript-utils'
7import { VideoModel } from './video' 7import { VideoModel } from './video'
8import { VideoBlacklistModel } from './video-blacklist' 8import { VideoBlacklistModel } from './video-blacklist'
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