diff options
Diffstat (limited to 'server/tests/api/users')
-rw-r--r-- | server/tests/api/users/blocklist.ts | 12 | ||||
-rw-r--r-- | server/tests/api/users/user-subscriptions.ts | 10 | ||||
-rw-r--r-- | server/tests/api/users/users-multiple-servers.ts | 17 | ||||
-rw-r--r-- | server/tests/api/users/users-verification.ts | 8 | ||||
-rw-r--r-- | server/tests/api/users/users.ts | 8 |
5 files changed, 31 insertions, 24 deletions
diff --git a/server/tests/api/users/blocklist.ts b/server/tests/api/users/blocklist.ts index 638a443ba..cd96ffe2a 100644 --- a/server/tests/api/users/blocklist.ts +++ b/server/tests/api/users/blocklist.ts | |||
@@ -12,16 +12,16 @@ import { | |||
12 | ServerInfo, | 12 | ServerInfo, |
13 | uploadVideo, | 13 | uploadVideo, |
14 | userLogin | 14 | userLogin |
15 | } from '../../../../shared/utils/index' | 15 | } from '../../../../shared/extra-utils/index' |
16 | import { setAccessTokensToServers } from '../../../../shared/utils/users/login' | 16 | import { setAccessTokensToServers } from '../../../../shared/extra-utils/users/login' |
17 | import { getVideosListWithToken, getVideosList } from '../../../../shared/utils/videos/videos' | 17 | import { getVideosListWithToken, getVideosList } from '../../../../shared/extra-utils/videos/videos' |
18 | import { | 18 | import { |
19 | addVideoCommentReply, | 19 | addVideoCommentReply, |
20 | addVideoCommentThread, | 20 | addVideoCommentThread, |
21 | getVideoCommentThreads, | 21 | getVideoCommentThreads, |
22 | getVideoThreadComments | 22 | getVideoThreadComments |
23 | } from '../../../../shared/utils/videos/video-comments' | 23 | } from '../../../../shared/extra-utils/videos/video-comments' |
24 | import { waitJobs } from '../../../../shared/utils/server/jobs' | 24 | import { waitJobs } from '../../../../shared/extra-utils/server/jobs' |
25 | import { VideoComment, VideoCommentThreadTree } from '../../../../shared/models/videos/video-comment.model' | 25 | import { VideoComment, VideoCommentThreadTree } from '../../../../shared/models/videos/video-comment.model' |
26 | import { | 26 | import { |
27 | addAccountToAccountBlocklist, | 27 | addAccountToAccountBlocklist, |
@@ -36,7 +36,7 @@ import { | |||
36 | removeAccountFromServerBlocklist, | 36 | removeAccountFromServerBlocklist, |
37 | removeServerFromAccountBlocklist, | 37 | removeServerFromAccountBlocklist, |
38 | removeServerFromServerBlocklist | 38 | removeServerFromServerBlocklist |
39 | } from '../../../../shared/utils/users/blocklist' | 39 | } from '../../../../shared/extra-utils/users/blocklist' |
40 | 40 | ||
41 | const expect = chai.expect | 41 | const expect = chai.expect |
42 | 42 | ||
diff --git a/server/tests/api/users/user-subscriptions.ts b/server/tests/api/users/user-subscriptions.ts index 037a79a76..5be185678 100644 --- a/server/tests/api/users/user-subscriptions.ts +++ b/server/tests/api/users/user-subscriptions.ts | |||
@@ -11,18 +11,18 @@ import { | |||
11 | unfollow, | 11 | unfollow, |
12 | updateVideo, | 12 | updateVideo, |
13 | userLogin | 13 | userLogin |
14 | } from '../../../../shared/utils' | 14 | } from '../../../../shared/extra-utils' |
15 | import { killallServers, ServerInfo, uploadVideo } from '../../../../shared/utils/index' | 15 | import { killallServers, ServerInfo, uploadVideo } from '../../../../shared/extra-utils/index' |
16 | import { setAccessTokensToServers } from '../../../../shared/utils/users/login' | 16 | import { setAccessTokensToServers } from '../../../../shared/extra-utils/users/login' |
17 | import { Video, VideoChannel } from '../../../../shared/models/videos' | 17 | import { Video, VideoChannel } from '../../../../shared/models/videos' |
18 | import { waitJobs } from '../../../../shared/utils/server/jobs' | 18 | import { waitJobs } from '../../../../shared/extra-utils/server/jobs' |
19 | import { | 19 | import { |
20 | addUserSubscription, | 20 | addUserSubscription, |
21 | listUserSubscriptions, | 21 | listUserSubscriptions, |
22 | listUserSubscriptionVideos, | 22 | listUserSubscriptionVideos, |
23 | removeUserSubscription, | 23 | removeUserSubscription, |
24 | getUserSubscription, areSubscriptionsExist | 24 | getUserSubscription, areSubscriptionsExist |
25 | } from '../../../../shared/utils/users/user-subscriptions' | 25 | } from '../../../../shared/extra-utils/users/user-subscriptions' |
26 | 26 | ||
27 | const expect = chai.expect | 27 | const expect = chai.expect |
28 | 28 | ||
diff --git a/server/tests/api/users/users-multiple-servers.ts b/server/tests/api/users/users-multiple-servers.ts index 0510b2de9..9b8db0072 100644 --- a/server/tests/api/users/users-multiple-servers.ts +++ b/server/tests/api/users/users-multiple-servers.ts | |||
@@ -14,13 +14,20 @@ import { | |||
14 | removeUser, | 14 | removeUser, |
15 | updateMyUser, | 15 | updateMyUser, |
16 | userLogin | 16 | userLogin |
17 | } from '../../../../shared/utils' | 17 | } from '../../../../shared/extra-utils' |
18 | import { getMyUserInformation, killallServers, ServerInfo, testImage, updateMyAvatar, uploadVideo } from '../../../../shared/utils/index' | 18 | import { |
19 | import { checkActorFilesWereRemoved, getAccount, getAccountsList } from '../../../../shared/utils/users/accounts' | 19 | getMyUserInformation, |
20 | import { setAccessTokensToServers } from '../../../../shared/utils/users/login' | 20 | killallServers, |
21 | ServerInfo, | ||
22 | testImage, | ||
23 | updateMyAvatar, | ||
24 | uploadVideo | ||
25 | } from '../../../../shared/extra-utils/index' | ||
26 | import { checkActorFilesWereRemoved, getAccount, getAccountsList } from '../../../../shared/extra-utils/users/accounts' | ||
27 | import { setAccessTokensToServers } from '../../../../shared/extra-utils/users/login' | ||
21 | import { User } from '../../../../shared/models/users' | 28 | import { User } from '../../../../shared/models/users' |
22 | import { VideoChannel } from '../../../../shared/models/videos' | 29 | import { VideoChannel } from '../../../../shared/models/videos' |
23 | import { waitJobs } from '../../../../shared/utils/server/jobs' | 30 | import { waitJobs } from '../../../../shared/extra-utils/server/jobs' |
24 | 31 | ||
25 | const expect = chai.expect | 32 | const expect = chai.expect |
26 | 33 | ||
diff --git a/server/tests/api/users/users-verification.ts b/server/tests/api/users/users-verification.ts index babeda2b8..7fcd3e50b 100644 --- a/server/tests/api/users/users-verification.ts +++ b/server/tests/api/users/users-verification.ts | |||
@@ -5,10 +5,10 @@ import 'mocha' | |||
5 | import { | 5 | import { |
6 | registerUser, flushTests, getUserInformation, getMyUserInformation, killallServers, | 6 | registerUser, flushTests, getUserInformation, getMyUserInformation, killallServers, |
7 | userLogin, login, runServer, ServerInfo, verifyEmail, updateCustomSubConfig, wait | 7 | userLogin, login, runServer, ServerInfo, verifyEmail, updateCustomSubConfig, wait |
8 | } from '../../../../shared/utils' | 8 | } from '../../../../shared/extra-utils' |
9 | import { setAccessTokensToServers } from '../../../../shared/utils/users/login' | 9 | import { setAccessTokensToServers } from '../../../../shared/extra-utils/users/login' |
10 | import { MockSmtpServer } from '../../../../shared/utils/miscs/email' | 10 | import { MockSmtpServer } from '../../../../shared/extra-utils/miscs/email' |
11 | import { waitJobs } from '../../../../shared/utils/server/jobs' | 11 | import { waitJobs } from '../../../../shared/extra-utils/server/jobs' |
12 | 12 | ||
13 | const expect = chai.expect | 13 | const expect = chai.expect |
14 | 14 | ||
diff --git a/server/tests/api/users/users.ts b/server/tests/api/users/users.ts index 13511e070..472ff511c 100644 --- a/server/tests/api/users/users.ts +++ b/server/tests/api/users/users.ts | |||
@@ -33,10 +33,10 @@ import { | |||
33 | updateUser, | 33 | updateUser, |
34 | uploadVideo, | 34 | uploadVideo, |
35 | userLogin | 35 | userLogin |
36 | } from '../../../../shared/utils' | 36 | } from '../../../../shared/extra-utils' |
37 | import { follow } from '../../../../shared/utils/server/follows' | 37 | import { follow } from '../../../../shared/extra-utils/server/follows' |
38 | import { setAccessTokensToServers } from '../../../../shared/utils/users/login' | 38 | import { setAccessTokensToServers } from '../../../../shared/extra-utils/users/login' |
39 | import { getMyVideos } from '../../../../shared/utils/videos/videos' | 39 | import { getMyVideos } from '../../../../shared/extra-utils/videos/videos' |
40 | import { UserAdminFlag } from '../../../../shared/models/users/user-flag.model' | 40 | import { UserAdminFlag } from '../../../../shared/models/users/user-flag.model' |
41 | 41 | ||
42 | const expect = chai.expect | 42 | const expect = chai.expect |