From d897210c2db1ca2acc1e7b28a13127647ab2222c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 8 Jul 2021 10:23:21 +0200 Subject: Introduce services command --- server/tests/api/server/services.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'server/tests') diff --git a/server/tests/api/server/services.ts b/server/tests/api/server/services.ts index ea64e4040..0adf6b667 100644 --- a/server/tests/api/server/services.ts +++ b/server/tests/api/server/services.ts @@ -6,7 +6,6 @@ import { Video, VideoPlaylistPrivacy } from '@shared/models' import { addVideoInPlaylist, createVideoPlaylist, - getOEmbed, getVideosList, ServerInfo, setAccessTokensToServers, @@ -70,7 +69,7 @@ describe('Test services', function () { for (const basePath of [ '/videos/watch/', '/w/' ]) { const oembedUrl = 'http://localhost:' + server.port + basePath + video.uuid - const res = await getOEmbed(server.url, oembedUrl) + const res = await server.servicesCommand.getOEmbed({ oembedUrl }) const expectedHtml = '' @@ -91,7 +90,7 @@ describe('Test services', function () { for (const basePath of [ '/videos/watch/playlist/', '/w/p/' ]) { const oembedUrl = 'http://localhost:' + server.port + basePath + playlistUUID - const res = await getOEmbed(server.url, oembedUrl) + const res = await server.servicesCommand.getOEmbed({ oembedUrl }) const expectedHtml = '' @@ -114,7 +113,7 @@ describe('Test services', function () { const maxHeight = 50 const maxWidth = 50 - const res = await getOEmbed(server.url, oembedUrl, format, maxHeight, maxWidth) + const res = await server.servicesCommand.getOEmbed({ oembedUrl, format, maxHeight, maxWidth }) const expectedHtml = '' -- cgit v1.2.3