diff options
author | Chocobozzz <me@florianbigard.com> | 2021-12-29 14:44:58 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-12-29 14:44:58 +0100 |
commit | 0628157fe9662fdb2b6fa658b8b53fe684c013ce (patch) | |
tree | 52bf9dc16d9e30cb716a6df76ce12fd7d34cff7f /server/tests | |
parent | fb3c9e2bf5b45d6d283cea4d55cc0d49eb58e3cb (diff) | |
download | PeerTube-0628157fe9662fdb2b6fa658b8b53fe684c013ce.tar.gz PeerTube-0628157fe9662fdb2b6fa658b8b53fe684c013ce.tar.zst PeerTube-0628157fe9662fdb2b6fa658b8b53fe684c013ce.zip |
Move uuid stuff in extra utils
Since it requires an external dependency
Diffstat (limited to 'server/tests')
-rw-r--r-- | server/tests/api/notifications/moderation-notifications.ts | 3 | ||||
-rw-r--r-- | server/tests/api/notifications/user-notifications.ts | 3 | ||||
-rw-r--r-- | server/tests/cli/prune-storage.ts | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/server/tests/api/notifications/moderation-notifications.ts b/server/tests/api/notifications/moderation-notifications.ts index e6e1d5f7b..9e330bd61 100644 --- a/server/tests/api/notifications/moderation-notifications.ts +++ b/server/tests/api/notifications/moderation-notifications.ts | |||
@@ -19,7 +19,8 @@ import { | |||
19 | MockSmtpServer, | 19 | MockSmtpServer, |
20 | prepareNotificationsTest | 20 | prepareNotificationsTest |
21 | } from '@server/tests/shared' | 21 | } from '@server/tests/shared' |
22 | import { buildUUID, wait } from '@shared/core-utils' | 22 | import { wait } from '@shared/core-utils' |
23 | import { buildUUID } from '@shared/extra-utils' | ||
23 | import { AbuseState, CustomConfig, UserNotification, UserRole, VideoPrivacy } from '@shared/models' | 24 | import { AbuseState, CustomConfig, UserNotification, UserRole, VideoPrivacy } from '@shared/models' |
24 | import { cleanupTests, PeerTubeServer, waitJobs } from '@shared/server-commands' | 25 | import { cleanupTests, PeerTubeServer, waitJobs } from '@shared/server-commands' |
25 | 26 | ||
diff --git a/server/tests/api/notifications/user-notifications.ts b/server/tests/api/notifications/user-notifications.ts index 0bd474c09..f9f3e0e0e 100644 --- a/server/tests/api/notifications/user-notifications.ts +++ b/server/tests/api/notifications/user-notifications.ts | |||
@@ -13,7 +13,8 @@ import { | |||
13 | prepareNotificationsTest, | 13 | prepareNotificationsTest, |
14 | uploadRandomVideoOnServers | 14 | uploadRandomVideoOnServers |
15 | } from '@server/tests/shared' | 15 | } from '@server/tests/shared' |
16 | import { buildUUID, wait } from '@shared/core-utils' | 16 | import { wait } from '@shared/core-utils' |
17 | import { buildUUID } from '@shared/extra-utils' | ||
17 | import { UserNotification, UserNotificationType, VideoPrivacy } from '@shared/models' | 18 | import { UserNotification, UserNotificationType, VideoPrivacy } from '@shared/models' |
18 | import { cleanupTests, PeerTubeServer, waitJobs } from '@shared/server-commands' | 19 | import { cleanupTests, PeerTubeServer, waitJobs } from '@shared/server-commands' |
19 | 20 | ||
diff --git a/server/tests/cli/prune-storage.ts b/server/tests/cli/prune-storage.ts index 8e8fc7e20..a723ed8b4 100644 --- a/server/tests/cli/prune-storage.ts +++ b/server/tests/cli/prune-storage.ts | |||
@@ -4,7 +4,8 @@ import 'mocha' | |||
4 | import * as chai from 'chai' | 4 | import * as chai from 'chai' |
5 | import { createFile, readdir } from 'fs-extra' | 5 | import { createFile, readdir } from 'fs-extra' |
6 | import { join } from 'path' | 6 | import { join } from 'path' |
7 | import { buildUUID, wait } from '@shared/core-utils' | 7 | import { wait } from '@shared/core-utils' |
8 | import { buildUUID } from '@shared/extra-utils' | ||
8 | import { HttpStatusCode, VideoPlaylistPrivacy } from '@shared/models' | 9 | import { HttpStatusCode, VideoPlaylistPrivacy } from '@shared/models' |
9 | import { | 10 | import { |
10 | cleanupTests, | 11 | cleanupTests, |