diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-06 15:33:39 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:17 +0200 |
commit | 2d1ad5b96063d1e430ca99128a15e2e56cb614e0 (patch) | |
tree | 5f65def246ec7956cd6f8f2a252588591c994733 /server/tests | |
parent | af971e06c620bd46a5aa64c8833364e7022b5e3d (diff) | |
download | PeerTube-2d1ad5b96063d1e430ca99128a15e2e56cb614e0.tar.gz PeerTube-2d1ad5b96063d1e430ca99128a15e2e56cb614e0.tar.zst PeerTube-2d1ad5b96063d1e430ca99128a15e2e56cb614e0.zip |
Move AP request in requests file
Diffstat (limited to 'server/tests')
-rw-r--r-- | server/tests/api/notifications/moderation-notifications.ts | 2 | ||||
-rw-r--r-- | server/tests/api/search/search-activitypub-videos.ts | 2 | ||||
-rw-r--r-- | server/tests/api/videos/videos-overview.ts | 1 |
3 files changed, 2 insertions, 3 deletions
diff --git a/server/tests/api/notifications/moderation-notifications.ts b/server/tests/api/notifications/moderation-notifications.ts index f77719c68..c4f63200a 100644 --- a/server/tests/api/notifications/moderation-notifications.ts +++ b/server/tests/api/notifications/moderation-notifications.ts | |||
@@ -235,7 +235,7 @@ describe('Test moderation notifications', function () { | |||
235 | const video = resVideo.body.video | 235 | const video = resVideo.body.video |
236 | 236 | ||
237 | { | 237 | { |
238 | const body = await servers[0].abusesCommand.report({ token: userAccessToken, videoId: video.id, reason: 'super reason' }) | 238 | const body = await servers[0].abusesCommand.report({ token: userAccessToken, videoId: video.id, reason: 'super reason' }) |
239 | abuseId = body.abuse.id | 239 | abuseId = body.abuse.id |
240 | } | 240 | } |
241 | 241 | ||
diff --git a/server/tests/api/search/search-activitypub-videos.ts b/server/tests/api/search/search-activitypub-videos.ts index 1a5130ce9..7c6455258 100644 --- a/server/tests/api/search/search-activitypub-videos.ts +++ b/server/tests/api/search/search-activitypub-videos.ts | |||
@@ -72,7 +72,7 @@ describe('Test ActivityPub videos search', function () { | |||
72 | 72 | ||
73 | it('Should search a local video', async function () { | 73 | it('Should search a local video', async function () { |
74 | const search = 'http://localhost:' + servers[0].port + '/videos/watch/' + videoServer1UUID | 74 | const search = 'http://localhost:' + servers[0].port + '/videos/watch/' + videoServer1UUID |
75 | const body = await command.searchVideos({ search }) | 75 | const body = await command.searchVideos({ search }) |
76 | 76 | ||
77 | expect(body.total).to.equal(1) | 77 | expect(body.total).to.equal(1) |
78 | expect(body.data).to.be.an('array') | 78 | expect(body.data).to.be.an('array') |
diff --git a/server/tests/api/videos/videos-overview.ts b/server/tests/api/videos/videos-overview.ts index c8e3df4bd..b3ab9e070 100644 --- a/server/tests/api/videos/videos-overview.ts +++ b/server/tests/api/videos/videos-overview.ts | |||
@@ -2,7 +2,6 @@ | |||
2 | 2 | ||
3 | import 'mocha' | 3 | import 'mocha' |
4 | import * as chai from 'chai' | 4 | import * as chai from 'chai' |
5 | import { Response } from 'superagent' | ||
6 | import { | 5 | import { |
7 | addAccountToAccountBlocklist, | 6 | addAccountToAccountBlocklist, |
8 | cleanupTests, | 7 | cleanupTests, |