From c8fc9b47188b33cfc33184b1ee7e680a093244f1 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 6 Jul 2021 10:35:35 +0200 Subject: [PATCH] Rename mock server files --- server/tests/api/notifications/admin-notifications.ts | 2 +- shared/extra-utils/index.ts | 2 +- shared/extra-utils/mock-servers/index.ts | 2 ++ .../{joinpeertube-versions.ts => mock-joinpeertube-versions.ts} | 0 4 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 shared/extra-utils/mock-servers/index.ts rename shared/extra-utils/mock-servers/{joinpeertube-versions.ts => mock-joinpeertube-versions.ts} (100%) diff --git a/server/tests/api/notifications/admin-notifications.ts b/server/tests/api/notifications/admin-notifications.ts index cfe0bd2bb..170aa4532 100644 --- a/server/tests/api/notifications/admin-notifications.ts +++ b/server/tests/api/notifications/admin-notifications.ts @@ -2,7 +2,7 @@ import 'mocha' import { expect } from 'chai' -import { MockJoinPeerTubeVersions } from '@shared/extra-utils/mock-servers/joinpeertube-versions' +import { MockJoinPeerTubeVersions } from '@shared/extra-utils' import { PluginType } from '@shared/models' import { cleanupTests, installPlugin, setPluginLatestVersion, setPluginVersion, wait } from '../../../../shared/extra-utils' import { ServerInfo } from '../../../../shared/extra-utils/index' diff --git a/shared/extra-utils/index.ts b/shared/extra-utils/index.ts index a3d3970af..30f44dfc2 100644 --- a/shared/extra-utils/index.ts +++ b/shared/extra-utils/index.ts @@ -8,7 +8,7 @@ export * from './feeds' export * from './logs' -export * from './mock-servers/mock-instances-index' +export * from './mock-servers' export * from './miscs/email' export * from './miscs/sql' diff --git a/shared/extra-utils/mock-servers/index.ts b/shared/extra-utils/mock-servers/index.ts new file mode 100644 index 000000000..47679c818 --- /dev/null +++ b/shared/extra-utils/mock-servers/index.ts @@ -0,0 +1,2 @@ +export * from './mock-instances-index' +export * from './mock-joinpeertube-versions' diff --git a/shared/extra-utils/mock-servers/joinpeertube-versions.ts b/shared/extra-utils/mock-servers/mock-joinpeertube-versions.ts similarity index 100% rename from shared/extra-utils/mock-servers/joinpeertube-versions.ts rename to shared/extra-utils/mock-servers/mock-joinpeertube-versions.ts