aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/activitypub/client.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/activitypub/client.ts')
-rw-r--r--server/tests/api/activitypub/client.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/server/tests/api/activitypub/client.ts b/server/tests/api/activitypub/client.ts
index 90c89138c..572a358a0 100644
--- a/server/tests/api/activitypub/client.ts
+++ b/server/tests/api/activitypub/client.ts
@@ -23,7 +23,7 @@ describe('Test activitypub', function () {
23 const object = res.body 23 const object = res.body
24 24
25 expect(object.type).to.equal('Person') 25 expect(object.type).to.equal('Person')
26 expect(object.id).to.equal('http://localhost:' + servers[0].port + '/accounts/root') 26 expect(object.id).to.equal(servers[0].url + '/accounts/root')
27 expect(object.name).to.equal('root') 27 expect(object.name).to.equal('root')
28 expect(object.preferredUsername).to.equal('root') 28 expect(object.preferredUsername).to.equal('root')
29 } 29 }
@@ -33,7 +33,7 @@ describe('Test activitypub', function () {
33 const object = res.body 33 const object = res.body
34 34
35 expect(object.type).to.equal('Group') 35 expect(object.type).to.equal('Group')
36 expect(object.id).to.equal('http://localhost:' + servers[0].port + '/video-channels/root_channel') 36 expect(object.id).to.equal(servers[0].url + '/video-channels/root_channel')
37 expect(object.name).to.equal('Main root channel') 37 expect(object.name).to.equal('Main root channel')
38 expect(object.preferredUsername).to.equal('root_channel') 38 expect(object.preferredUsername).to.equal('root_channel')
39 } 39 }
@@ -43,7 +43,7 @@ describe('Test activitypub', function () {
43 const object = res.body 43 const object = res.body
44 44
45 expect(object.type).to.equal('Video') 45 expect(object.type).to.equal('Video')
46 expect(object.id).to.equal('http://localhost:' + servers[0].port + '/videos/watch/' + video.uuid) 46 expect(object.id).to.equal(servers[0].url + '/videos/watch/' + video.uuid)
47 expect(object.name).to.equal('video') 47 expect(object.name).to.equal('video')
48 } 48 }
49 49
@@ -52,7 +52,7 @@ describe('Test activitypub', function () {
52 const object = res.body 52 const object = res.body
53 53
54 expect(object.type).to.equal('Playlist') 54 expect(object.type).to.equal('Playlist')
55 expect(object.id).to.equal('http://localhost:' + servers[0].port + '/video-playlists/' + playlist.uuid) 55 expect(object.id).to.equal(servers[0].url + '/video-playlists/' + playlist.uuid)
56 expect(object.name).to.equal('playlist') 56 expect(object.name).to.equal('playlist')
57 } 57 }
58 58
@@ -110,7 +110,7 @@ describe('Test activitypub', function () {
110 it('Should redirect to the origin video object', async function () { 110 it('Should redirect to the origin video object', async function () {
111 const res = await makeActivityPubGetRequest(servers[1].url, '/videos/watch/' + video.uuid, HttpStatusCode.FOUND_302) 111 const res = await makeActivityPubGetRequest(servers[1].url, '/videos/watch/' + video.uuid, HttpStatusCode.FOUND_302)
112 112
113 expect(res.header.location).to.equal('http://localhost:' + servers[0].port + '/videos/watch/' + video.uuid) 113 expect(res.header.location).to.equal(servers[0].url + '/videos/watch/' + video.uuid)
114 }) 114 })
115 115
116 it('Should return the watch action', async function () { 116 it('Should return the watch action', async function () {