aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/moderation
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-16 10:19:16 +0200
committerChocobozzz <me@florianbigard.com>2021-07-20 15:27:18 +0200
commit59bbcced37005dd511daca9bd58ae2998cb931b1 (patch)
tree60d1ba7a8b2eac691f27c25cb5e2d0ae3a510c9d /server/tests/api/moderation
parent254d3579f5338f5fd775c17d15cdfc37078bcfb4 (diff)
downloadPeerTube-59bbcced37005dd511daca9bd58ae2998cb931b1.tar.gz
PeerTube-59bbcced37005dd511daca9bd58ae2998cb931b1.tar.zst
PeerTube-59bbcced37005dd511daca9bd58ae2998cb931b1.zip
Centralize test URLs
Diffstat (limited to 'server/tests/api/moderation')
-rw-r--r--server/tests/api/moderation/video-blacklist.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/tests/api/moderation/video-blacklist.ts b/server/tests/api/moderation/video-blacklist.ts
index 62cbf2e07..d5838191a 100644
--- a/server/tests/api/moderation/video-blacklist.ts
+++ b/server/tests/api/moderation/video-blacklist.ts
@@ -6,9 +6,9 @@ import { orderBy } from 'lodash'
6import { 6import {
7 BlacklistCommand, 7 BlacklistCommand,
8 cleanupTests, 8 cleanupTests,
9 doubleFollow,
10 createMultipleServers, 9 createMultipleServers,
11 ImportsCommand, 10 doubleFollow,
11 FIXTURE_URLS,
12 killallServers, 12 killallServers,
13 PeerTubeServer, 13 PeerTubeServer,
14 setAccessTokensToServers, 14 setAccessTokensToServers,
@@ -387,7 +387,7 @@ describe('Test video blacklist', function () {
387 this.timeout(15000) 387 this.timeout(15000)
388 388
389 const attributes = { 389 const attributes = {
390 targetUrl: ImportsCommand.getGoodVideoUrl(), 390 targetUrl: FIXTURE_URLS.goodVideo,
391 name: 'URL import', 391 name: 'URL import',
392 channelId: channelOfUserWithoutFlag 392 channelId: channelOfUserWithoutFlag
393 } 393 }
@@ -400,7 +400,7 @@ describe('Test video blacklist', function () {
400 400
401 it('Should auto blacklist a video on torrent import', async function () { 401 it('Should auto blacklist a video on torrent import', async function () {
402 const attributes = { 402 const attributes = {
403 magnetUri: ImportsCommand.getMagnetURI(), 403 magnetUri: FIXTURE_URLS.magnet,
404 name: 'Torrent import', 404 name: 'Torrent import',
405 channelId: channelOfUserWithoutFlag 405 channelId: channelOfUserWithoutFlag
406 } 406 }