X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Factivitypub.ts;h=c8884719de5ebfe37eed3a4dab44bcdaa54ecbeb;hb=9bce811268cd74b402176ae9fcd8b77ac887576e;hp=333e02e8468d9cfa1c060f6f0282f57033256e74;hpb=6cbdbdef1786aabb2003918fad6cd8c0d4433f7c;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/activitypub.ts b/server/tests/activitypub.ts index 333e02e84..c8884719d 100644 --- a/server/tests/activitypub.ts +++ b/server/tests/activitypub.ts @@ -2,9 +2,7 @@ import * as chai from 'chai' import 'mocha' -import { flushTests, killallServers, ServerInfo, setAccessTokensToServers } from './utils' -import { runServer } from './utils/servers' -import { makeActivityPubGetRequest } from './utils/activitypub' +import { flushTests, killallServers, makeActivityPubGetRequest, runServer, ServerInfo, setAccessTokensToServers } from './utils' const expect = chai.expect @@ -22,11 +20,11 @@ describe('Test activitypub', function () { }) it('Should return the account object', async function () { - const res = await makeActivityPubGetRequest(server.url, '/account/root') + const res = await makeActivityPubGetRequest(server.url, '/accounts/root') const object = res.body expect(object.type).to.equal('Person') - expect(object.id).to.equal('http://localhost:9001/account/root') + expect(object.id).to.equal('http://localhost:9001/accounts/root') expect(object.name).to.equal('root') expect(object.preferredUsername).to.equal('root') })