X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fvideos%2Fservices.ts;h=5505a845a65306c48ce00667b05f6dc2b5f7103c;hb=2ad9dcda240ee843c5e4a5b98cc94f7b2aab2c89;hp=17172331f917b41639ef298c3bac60bb424554a2;hpb=79ad1706f3cf009e04db9cd9e6a721801d93e64e;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/videos/services.ts b/server/tests/api/videos/services.ts index 17172331f..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) @@ -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)