diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-17 11:35:10 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:52 +0100 |
commit | afffe98839db7ccbfa9fb8b7d1413b97900fdc73 (patch) | |
tree | f0b3cbe58f73e81a5ba4bb31dabd9691994cf2ca /server/tests/api/services.ts | |
parent | 1b3989b0961d22a5a45ad16239e3c3f58f66180c (diff) | |
download | PeerTube-afffe98839db7ccbfa9fb8b7d1413b97900fdc73.tar.gz PeerTube-afffe98839db7ccbfa9fb8b7d1413b97900fdc73.tar.zst PeerTube-afffe98839db7ccbfa9fb8b7d1413b97900fdc73.zip |
Speed up activity pub http requests
Diffstat (limited to 'server/tests/api/services.ts')
-rw-r--r-- | server/tests/api/services.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/tests/api/services.ts b/server/tests/api/services.ts index 76911fdc5..c34c51f66 100644 --- a/server/tests/api/services.ts +++ b/server/tests/api/services.ts | |||
@@ -14,6 +14,7 @@ import { | |||
14 | getOEmbed | 14 | getOEmbed |
15 | } from '../utils' | 15 | } from '../utils' |
16 | import { runServer } from '../utils/servers' | 16 | import { runServer } from '../utils/servers' |
17 | import { Video } from '../../../client/src/app/videos/shared/video.model' | ||
17 | 18 | ||
18 | describe('Test services', function () { | 19 | describe('Test services', function () { |
19 | let server: ServerInfo = null | 20 | let server: ServerInfo = null |
@@ -46,7 +47,7 @@ describe('Test services', function () { | |||
46 | 47 | ||
47 | expect(res.body.html).to.equal(expectedHtml) | 48 | expect(res.body.html).to.equal(expectedHtml) |
48 | expect(res.body.title).to.equal(server.video.name) | 49 | expect(res.body.title).to.equal(server.video.name) |
49 | expect(res.body.author_name).to.equal(server.video.author) | 50 | expect(res.body.author_name).to.equal(server.video.account) |
50 | expect(res.body.width).to.equal(560) | 51 | expect(res.body.width).to.equal(560) |
51 | expect(res.body.height).to.equal(315) | 52 | expect(res.body.height).to.equal(315) |
52 | expect(res.body.thumbnail_url).to.equal(expectedThumbnailUrl) | 53 | expect(res.body.thumbnail_url).to.equal(expectedThumbnailUrl) |
@@ -66,7 +67,7 @@ describe('Test services', function () { | |||
66 | 67 | ||
67 | expect(res.body.html).to.equal(expectedHtml) | 68 | expect(res.body.html).to.equal(expectedHtml) |
68 | expect(res.body.title).to.equal(server.video.name) | 69 | expect(res.body.title).to.equal(server.video.name) |
69 | expect(res.body.author_name).to.equal(server.video.author) | 70 | expect(res.body.author_name).to.equal(server.video.account) |
70 | expect(res.body.height).to.equal(50) | 71 | expect(res.body.height).to.equal(50) |
71 | expect(res.body.width).to.equal(50) | 72 | expect(res.body.width).to.equal(50) |
72 | expect(res.body).to.not.have.property('thumbnail_url') | 73 | expect(res.body).to.not.have.property('thumbnail_url') |