diff options
Diffstat (limited to 'server/tests/client.ts')
-rw-r--r-- | server/tests/client.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server/tests/client.ts b/server/tests/client.ts index 648d46414..2d8468c06 100644 --- a/server/tests/client.ts +++ b/server/tests/client.ts | |||
@@ -163,8 +163,10 @@ describe('Test a client controllers', function () { | |||
163 | .set('Accept', 'text/html') | 163 | .set('Accept', 'text/html') |
164 | .expect(200) | 164 | .expect(200) |
165 | 165 | ||
166 | const expectedLink = '<link rel="alternate" type="application/json+oembed" href="http://localhost:9001/services/oembed?' + | 166 | const port = server.port |
167 | `url=http%3A%2F%2Flocalhost%3A9001%2Fvideos%2Fwatch%2F${server.video.uuid}" ` + | 167 | |
168 | const expectedLink = '<link rel="alternate" type="application/json+oembed" href="http://localhost:' + port + '/services/oembed?' + | ||
169 | `url=http%3A%2F%2Flocalhost%3A${port}%2Fvideos%2Fwatch%2F${server.video.uuid}" ` + | ||
168 | `title="${server.video.name}" />` | 170 | `title="${server.video.name}" />` |
169 | 171 | ||
170 | expect(res.text).to.contain(expectedLink) | 172 | expect(res.text).to.contain(expectedLink) |