From 164174a6abac3e391e95d479a98749e20eb86f34 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 17 Oct 2017 10:35:27 +0200 Subject: Use preview instead of thumbnail for oembed --- server/tests/api/services.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'server/tests/api/services.ts') 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 () { -- cgit v1.2.3