From ab4001aade0891b70e456a215ced0f825c57fde8 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 22 Oct 2021 14:11:58 +0200 Subject: Provide origin URL to client and fix remote share --- shared/extra-utils/videos/videos.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'shared/extra-utils/videos') diff --git a/shared/extra-utils/videos/videos.ts b/shared/extra-utils/videos/videos.ts index a1d2ba0fc..4d2784dde 100644 --- a/shared/extra-utils/videos/videos.ts +++ b/shared/extra-utils/videos/videos.ts @@ -113,7 +113,7 @@ async function completeVideoCheck ( channel: { displayName: string name: string - description + description: string isLocal: boolean } fixture: string @@ -151,6 +151,7 @@ async function completeVideoCheck ( expect(video.dislikes).to.equal(attributes.dislikes) expect(video.isLocal).to.equal(attributes.isLocal) expect(video.duration).to.equal(attributes.duration) + expect(video.url).to.contain(originHost) expect(dateIsValid(video.createdAt)).to.be.true expect(dateIsValid(video.publishedAt)).to.be.true expect(dateIsValid(video.updatedAt)).to.be.true -- cgit v1.2.3