/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
-import 'mocha'
-import * as chai from 'chai'
+import { expect } from 'chai'
import { completeVideoCheck, dateIsValid, expectAccountFollows, expectChannelsFollows, testCaptionFile } from '@server/tests/shared'
import { VideoCreateResult, VideoPrivacy } from '@shared/models'
import { cleanupTests, createMultipleServers, PeerTubeServer, setAccessTokensToServers, waitJobs } from '@shared/server-commands'
-const expect = chai.expect
-
describe('Test follows', function () {
let servers: PeerTubeServer[] = []
const follows = body.data
expect(follows).to.be.an('array')
expect(follows).to.have.lengthOf(1)
- expect(follows[0].follower.host).to.equal('localhost:' + servers[0].port)
+ expect(follows[0].follower.host).to.equal(servers[0].host)
})
it('Should have 0 followers on server 1 and 2', async function () {