X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fvideos%2Fservices.ts;h=5505a845a65306c48ce00667b05f6dc2b5f7103c;hb=5a61ffbb7c72dd7ecfa16c7944dac45411c1bbe9;hp=38e232e5f4472f61d36e416e58975b40a6b2139d;hpb=1600235a2f4e30c5d4e7d4342d1c299845decc60;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/videos/services.ts b/server/tests/api/videos/services.ts index 38e232e5f..5505a845a 100644 --- a/server/tests/api/videos/services.ts +++ b/server/tests/api/videos/services.ts @@ -1,4 +1,4 @@ -/* tslint:disable:no-unused-expression */ +/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ import * as chai from 'chai' import 'mocha' @@ -31,8 +31,8 @@ describe('Test services', function () { const res = await getOEmbed(server.url, oembedUrl) const expectedHtml = '' + `src="http://localhost:${server.port}/videos/embed/${server.video.uuid}" ` + + 'frameborder="0" allowfullscreen>' const expectedThumbnailUrl = 'http://localhost:' + server.port + '/static/previews/' + server.video.uuid + '.jpg' expect(res.body.html).to.equal(expectedHtml) @@ -41,8 +41,8 @@ describe('Test services', function () { 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(560) - expect(res.body.thumbnail_height).to.equal(315) + expect(res.body.thumbnail_width).to.equal(850) + expect(res.body.thumbnail_height).to.equal(480) }) it('Should have a valid oEmbed response with small max height query', async function () { @@ -53,8 +53,8 @@ describe('Test services', function () { const res = await getOEmbed(server.url, oembedUrl, format, maxHeight, maxWidth) const expectedHtml = '' + `src="http://localhost:${server.port}/videos/embed/${server.video.uuid}" ` + + 'frameborder="0" allowfullscreen>' expect(res.body.html).to.equal(expectedHtml) expect(res.body.title).to.equal(server.video.name)