]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/api/services.ts
Usernames are case insensitive now
[github/Chocobozzz/PeerTube.git] / server / tests / api / services.ts
index b396ea582ffa66b90c0ddbaa49d130860513552a..76911fdc52b081173108c866340b957f829b386a 100644 (file)
@@ -42,16 +42,16 @@ describe('Test services', function () {
     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 () {