X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fvideos%2Fservices.ts;h=45b4a1a8112404ca1e289c29f3547ed5c1be267f;hb=5d00a3d7aa4309f1da5ac7d6e3ed63181eb34952;hp=699f79ab7268ffe8aa6e48b45120c9a0d2414bc5;hpb=8b0d42ee372de6589796be26b83e5bffb1b69cdf;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/videos/services.ts b/server/tests/api/videos/services.ts index 699f79ab7..45b4a1a81 100644 --- a/server/tests/api/videos/services.ts +++ b/server/tests/api/videos/services.ts @@ -11,7 +11,7 @@ describe('Test services', function () { let server: ServerInfo = null before(async function () { - this.timeout(10000) + this.timeout(30000) await flushTests() @@ -38,7 +38,7 @@ describe('Test services', function () { 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.accountName) + expect(res.body.author_name).to.equal(server.video.account.name) expect(res.body.width).to.equal(560) expect(res.body.height).to.equal(315) expect(res.body.thumbnail_url).to.equal(expectedThumbnailUrl) @@ -58,7 +58,7 @@ describe('Test services', function () { 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.accountName) + expect(res.body.author_name).to.equal(server.video.account.name) expect(res.body.height).to.equal(50) expect(res.body.width).to.equal(50) expect(res.body).to.not.have.property('thumbnail_url')