X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fserver%2Ffollows.ts;h=6a2cc2c43439d580824323514383f75de91745b3;hb=2fe978744e5b74eb824e4d79c1bb9b840169f125;hp=c588cf664162b7c9b59863dd756808546e6b6938;hpb=81d02aac56d76227c094d40b17b29875d88417f4;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/server/follows.ts b/server/tests/api/server/follows.ts index c588cf664..6a2cc2c43 100644 --- a/server/tests/api/server/follows.ts +++ b/server/tests/api/server/follows.ts @@ -1,13 +1,10 @@ /* 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[] = [] @@ -91,7 +88,7 @@ describe('Test follows', function () { 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 () {