const res = await getOEmbed(server.url, oembedUrl)
const expectedHtml = `<iframe width="560" height="315" src="http://localhost:9001/videos/embed/${server.video.uuid}" ` +
'frameborder="0" allowfullscreen></iframe>'
- 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 () {