/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
-import 'mocha'
-import * as chai from 'chai'
+import { expect } from 'chai'
import { wait } from '@shared/core-utils'
import { VideoPrivacy, VideoState } from '@shared/models'
import {
waitUntilLivePublishedOnAllServers
} from '@shared/server-commands'
-const expect = chai.expect
-
-describe('Test live', function () {
+describe('Test live socket messages', function () {
let servers: PeerTubeServer[] = []
before(async function () {
expect(localLastVideoViews).to.equal(0)
expect(remoteLastVideoViews).to.equal(0)
- await servers[0].videos.view({ id: liveVideoUUID })
- await servers[1].videos.view({ id: liveVideoUUID })
+ await servers[0].views.simulateView({ id: liveVideoUUID })
+ await servers[1].views.simulateView({ id: liveVideoUUID })
await waitJobs(servers)