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'
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 })
})
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
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