diff options
Diffstat (limited to 'server/tests/api/activitypub/client.ts')
-rw-r--r-- | server/tests/api/activitypub/client.ts | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/server/tests/api/activitypub/client.ts b/server/tests/api/activitypub/client.ts index e8536a214..0190df04c 100644 --- a/server/tests/api/activitypub/client.ts +++ b/server/tests/api/activitypub/client.ts | |||
@@ -2,8 +2,7 @@ | |||
2 | 2 | ||
3 | import 'mocha' | 3 | import 'mocha' |
4 | import * as chai from 'chai' | 4 | import * as chai from 'chai' |
5 | import { VideoPlaylistPrivacy } from '@shared/models' | 5 | import { HttpStatusCode } from '@shared/core-utils' |
6 | import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes' | ||
7 | import { | 6 | import { |
8 | cleanupTests, | 7 | cleanupTests, |
9 | doubleFollow, | 8 | doubleFollow, |
@@ -11,9 +10,9 @@ import { | |||
11 | makeActivityPubGetRequest, | 10 | makeActivityPubGetRequest, |
12 | ServerInfo, | 11 | ServerInfo, |
13 | setAccessTokensToServers, | 12 | setAccessTokensToServers, |
14 | setDefaultVideoChannel, | 13 | setDefaultVideoChannel |
15 | uploadVideoAndGetId | 14 | } from '@shared/extra-utils' |
16 | } from '../../../../shared/extra-utils' | 15 | import { VideoPlaylistPrivacy } from '@shared/models' |
17 | 16 | ||
18 | const expect = chai.expect | 17 | const expect = chai.expect |
19 | 18 | ||
@@ -69,7 +68,7 @@ describe('Test activitypub', function () { | |||
69 | await setDefaultVideoChannel(servers) | 68 | await setDefaultVideoChannel(servers) |
70 | 69 | ||
71 | { | 70 | { |
72 | video = await uploadVideoAndGetId({ server: servers[0], videoName: 'video' }) | 71 | video = await await servers[0].videosCommand.quickUpload({ name: 'video' }) |
73 | } | 72 | } |
74 | 73 | ||
75 | { | 74 | { |