X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fservices.ts;h=76911fdc52b081173108c866340b957f829b386a;hb=563d032e97cc62de50281e6413a8a03ed37a3d3b;hp=b396ea582ffa66b90c0ddbaa49d130860513552a;hpb=d8755eed1e452d2efbfc983af0e9d228d152bf6b;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/services.ts b/server/tests/api/services.ts index b396ea582..76911fdc5 100644 --- a/server/tests/api/services.ts +++ b/server/tests/api/services.ts @@ -42,16 +42,16 @@ describe('Test services', function () { const res = await getOEmbed(server.url, oembedUrl) const expectedHtml = `' - const expectedThumbnailUrl = 'http://localhost:9001/static/thumbnails/' + server.video.uuid + '.jpg' + const expectedThumbnailUrl = 'http://localhost:9001/static/previews/' + server.video.uuid + '.jpg' expect(res.body.html).to.equal(expectedHtml) expect(res.body.title).to.equal(server.video.name) expect(res.body.author_name).to.equal(server.video.author) - expect(res.body.height).to.equal(315) expect(res.body.width).to.equal(560) + expect(res.body.height).to.equal(315) expect(res.body.thumbnail_url).to.equal(expectedThumbnailUrl) - expect(res.body.thumbnail_width).to.equal(200) - expect(res.body.thumbnail_height).to.equal(110) + expect(res.body.thumbnail_width).to.equal(560) + expect(res.body.thumbnail_height).to.equal(315) }) it('Should have a valid oEmbed response with small max height query', async function () {