aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-12-29 14:44:58 +0100
committerChocobozzz <me@florianbigard.com>2021-12-29 14:44:58 +0100
commit0628157fe9662fdb2b6fa658b8b53fe684c013ce (patch)
tree52bf9dc16d9e30cb716a6df76ce12fd7d34cff7f /server/tests
parentfb3c9e2bf5b45d6d283cea4d55cc0d49eb58e3cb (diff)
downloadPeerTube-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.ts3
-rw-r--r--server/tests/api/notifications/user-notifications.ts3
-rw-r--r--server/tests/cli/prune-storage.ts3
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'
22import { buildUUID, wait } from '@shared/core-utils' 22import { wait } from '@shared/core-utils'
23import { buildUUID } from '@shared/extra-utils'
23import { AbuseState, CustomConfig, UserNotification, UserRole, VideoPrivacy } from '@shared/models' 24import { AbuseState, CustomConfig, UserNotification, UserRole, VideoPrivacy } from '@shared/models'
24import { cleanupTests, PeerTubeServer, waitJobs } from '@shared/server-commands' 25import { 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'
16import { buildUUID, wait } from '@shared/core-utils' 16import { wait } from '@shared/core-utils'
17import { buildUUID } from '@shared/extra-utils'
17import { UserNotification, UserNotificationType, VideoPrivacy } from '@shared/models' 18import { UserNotification, UserNotificationType, VideoPrivacy } from '@shared/models'
18import { cleanupTests, PeerTubeServer, waitJobs } from '@shared/server-commands' 19import { 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'
4import * as chai from 'chai' 4import * as chai from 'chai'
5import { createFile, readdir } from 'fs-extra' 5import { createFile, readdir } from 'fs-extra'
6import { join } from 'path' 6import { join } from 'path'
7import { buildUUID, wait } from '@shared/core-utils' 7import { wait } from '@shared/core-utils'
8import { buildUUID } from '@shared/extra-utils'
8import { HttpStatusCode, VideoPlaylistPrivacy } from '@shared/models' 9import { HttpStatusCode, VideoPlaylistPrivacy } from '@shared/models'
9import { 10import {
10 cleanupTests, 11 cleanupTests,