diff options
Diffstat (limited to 'server/tests/plugins')
-rw-r--r-- | server/tests/plugins/filter-hooks.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/server/tests/plugins/filter-hooks.ts b/server/tests/plugins/filter-hooks.ts index 5d94303a9..df52bb3b5 100644 --- a/server/tests/plugins/filter-hooks.ts +++ b/server/tests/plugins/filter-hooks.ts | |||
@@ -5,12 +5,12 @@ import * as chai from 'chai' | |||
5 | import { HttpStatusCode } from '@shared/core-utils' | 5 | import { HttpStatusCode } from '@shared/core-utils' |
6 | import { | 6 | import { |
7 | cleanupTests, | 7 | cleanupTests, |
8 | doubleFollow, | ||
9 | createMultipleServers, | 8 | createMultipleServers, |
10 | ImportsCommand, | 9 | doubleFollow, |
10 | FIXTURE_URLS, | ||
11 | makeRawRequest, | 11 | makeRawRequest, |
12 | PluginsCommand, | ||
13 | PeerTubeServer, | 12 | PeerTubeServer, |
13 | PluginsCommand, | ||
14 | setAccessTokensToServers, | 14 | setAccessTokensToServers, |
15 | setDefaultVideoChannel, | 15 | setDefaultVideoChannel, |
16 | waitJobs | 16 | waitJobs |
@@ -136,7 +136,7 @@ describe('Test plugin filter hooks', function () { | |||
136 | name: 'normal title', | 136 | name: 'normal title', |
137 | privacy: VideoPrivacy.PUBLIC, | 137 | privacy: VideoPrivacy.PUBLIC, |
138 | channelId: servers[0].store.channel.id, | 138 | channelId: servers[0].store.channel.id, |
139 | targetUrl: ImportsCommand.getGoodVideoUrl() + 'bad' | 139 | targetUrl: FIXTURE_URLS.goodVideo + 'bad' |
140 | } | 140 | } |
141 | await servers[0].imports.importVideo({ attributes, expectedStatus: HttpStatusCode.FORBIDDEN_403 }) | 141 | await servers[0].imports.importVideo({ attributes, expectedStatus: HttpStatusCode.FORBIDDEN_403 }) |
142 | }) | 142 | }) |
@@ -161,7 +161,7 @@ describe('Test plugin filter hooks', function () { | |||
161 | name: 'title with bad word', | 161 | name: 'title with bad word', |
162 | privacy: VideoPrivacy.PUBLIC, | 162 | privacy: VideoPrivacy.PUBLIC, |
163 | channelId: servers[0].store.channel.id, | 163 | channelId: servers[0].store.channel.id, |
164 | targetUrl: ImportsCommand.getGoodVideoUrl() | 164 | targetUrl: FIXTURE_URLS.goodVideo |
165 | } | 165 | } |
166 | const body = await servers[0].imports.importVideo({ attributes }) | 166 | const body = await servers[0].imports.importVideo({ attributes }) |
167 | videoImportId = body.id | 167 | videoImportId = body.id |
@@ -273,7 +273,7 @@ describe('Test plugin filter hooks', function () { | |||
273 | 273 | ||
274 | const attributes = { | 274 | const attributes = { |
275 | name: 'video please blacklist me', | 275 | name: 'video please blacklist me', |
276 | targetUrl: ImportsCommand.getGoodVideoUrl(), | 276 | targetUrl: FIXTURE_URLS.goodVideo, |
277 | channelId: servers[0].store.channel.id | 277 | channelId: servers[0].store.channel.id |
278 | } | 278 | } |
279 | const body = await servers[0].imports.importVideo({ attributes }) | 279 | const body = await servers[0].imports.importVideo({ attributes }) |