+ it('Should return the video object', async function () {
+ const res = await makeActivityPubGetRequest(servers[0].url, '/videos/watch/' + videoUUID)
+ const object = res.body
+
+ expect(object.type).to.equal('Video')
+ expect(object.id).to.equal('http://localhost:' + servers[0].port + '/videos/watch/' + videoUUID)
+ expect(object.name).to.equal('video')
+ })
+
+ it('Should redirect to the origin video object', async function () {
+ const res = await makeActivityPubGetRequest(servers[1].url, '/videos/watch/' + videoUUID, 302)
+
+ expect(res.header.location).to.equal('http://localhost:' + servers[0].port + '/videos/watch/' + videoUUID)
+ })
+