From 0628157fe9662fdb2b6fa658b8b53fe684c013ce Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 29 Dec 2021 14:44:58 +0100 Subject: Move uuid stuff in extra utils Since it requires an external dependency --- server/tests/api/notifications/moderation-notifications.ts | 3 ++- server/tests/api/notifications/user-notifications.ts | 3 ++- server/tests/cli/prune-storage.ts | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) (limited to 'server/tests') 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 { MockSmtpServer, prepareNotificationsTest } from '@server/tests/shared' -import { buildUUID, wait } from '@shared/core-utils' +import { wait } from '@shared/core-utils' +import { buildUUID } from '@shared/extra-utils' import { AbuseState, CustomConfig, UserNotification, UserRole, VideoPrivacy } from '@shared/models' import { cleanupTests, PeerTubeServer, waitJobs } from '@shared/server-commands' 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 { prepareNotificationsTest, uploadRandomVideoOnServers } from '@server/tests/shared' -import { buildUUID, wait } from '@shared/core-utils' +import { wait } from '@shared/core-utils' +import { buildUUID } from '@shared/extra-utils' import { UserNotification, UserNotificationType, VideoPrivacy } from '@shared/models' import { cleanupTests, PeerTubeServer, waitJobs } from '@shared/server-commands' 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' import * as chai from 'chai' import { createFile, readdir } from 'fs-extra' import { join } from 'path' -import { buildUUID, wait } from '@shared/core-utils' +import { wait } from '@shared/core-utils' +import { buildUUID } from '@shared/extra-utils' import { HttpStatusCode, VideoPlaylistPrivacy } from '@shared/models' import { cleanupTests, -- cgit v1.2.3