Correctly export misc files
This commit is contained in:
parent
c8fc9b4718
commit
8ef9457fde
|
@ -1,11 +1,10 @@
|
|||
/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
|
||||
|
||||
import 'mocha'
|
||||
|
||||
import { cleanupTests, flushAndRunServer, immutableAssign, killallServers, reRunServer, ServerInfo } from '../../../../shared/extra-utils'
|
||||
import { sendContactForm } from '../../../../shared/extra-utils/server/contact-form'
|
||||
import { MockSmtpServer } from '../../../../shared/extra-utils/miscs/email'
|
||||
import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes'
|
||||
import { cleanupTests, flushAndRunServer, immutableAssign, killallServers, reRunServer, ServerInfo } from '../../../../shared/extra-utils'
|
||||
import { MockSmtpServer } from '../../../../shared/extra-utils/mock-servers/mock-email'
|
||||
import { sendContactForm } from '../../../../shared/extra-utils/server/contact-form'
|
||||
|
||||
describe('Test contact form API validators', function () {
|
||||
let server: ServerInfo
|
||||
|
|
|
@ -32,7 +32,7 @@ import {
|
|||
uploadVideo,
|
||||
userLogin
|
||||
} from '../../../../shared/extra-utils'
|
||||
import { MockSmtpServer } from '../../../../shared/extra-utils/miscs/email'
|
||||
import { MockSmtpServer } from '../../../../shared/extra-utils/mock-servers/mock-email'
|
||||
import {
|
||||
checkBadCountPagination,
|
||||
checkBadSortPagination,
|
||||
|
|
|
@ -6,7 +6,7 @@ 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'
|
||||
import { MockSmtpServer } from '../../../../shared/extra-utils/miscs/email'
|
||||
import { MockSmtpServer } from '../../../../shared/extra-utils/mock-servers/mock-email'
|
||||
import {
|
||||
CheckerBaseParams,
|
||||
checkNewPeerTubeVersion,
|
||||
|
|
|
@ -27,7 +27,7 @@ import {
|
|||
wait
|
||||
} from '../../../../shared/extra-utils'
|
||||
import { ServerInfo, uploadVideo } from '../../../../shared/extra-utils/index'
|
||||
import { MockSmtpServer } from '../../../../shared/extra-utils/miscs/email'
|
||||
import { MockSmtpServer } from '../../../../shared/extra-utils/mock-servers/mock-email'
|
||||
import { waitJobs } from '../../../../shared/extra-utils/server/jobs'
|
||||
import {
|
||||
checkAbuseStateChange,
|
||||
|
|
|
@ -5,7 +5,7 @@ import * as chai from 'chai'
|
|||
import { addUserSubscription } from '@shared/extra-utils/users/user-subscriptions'
|
||||
import { cleanupTests, getMyUserInformation, immutableAssign, uploadRandomVideo, waitJobs } from '../../../../shared/extra-utils'
|
||||
import { ServerInfo } from '../../../../shared/extra-utils/index'
|
||||
import { MockSmtpServer } from '../../../../shared/extra-utils/miscs/email'
|
||||
import { MockSmtpServer } from '../../../../shared/extra-utils/mock-servers/mock-email'
|
||||
import {
|
||||
CheckerBaseParams,
|
||||
checkNewVideoFromSubscription,
|
||||
|
|
|
@ -12,7 +12,7 @@ import {
|
|||
wait
|
||||
} from '../../../../shared/extra-utils'
|
||||
import { ServerInfo } from '../../../../shared/extra-utils/index'
|
||||
import { MockSmtpServer } from '../../../../shared/extra-utils/miscs/email'
|
||||
import { MockSmtpServer } from '../../../../shared/extra-utils/mock-servers/mock-email'
|
||||
import { waitJobs } from '../../../../shared/extra-utils/server/jobs'
|
||||
import {
|
||||
CheckerBaseParams,
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
|
||||
|
||||
import * as chai from 'chai'
|
||||
import 'mocha'
|
||||
import { cleanupTests, flushAndRunServer, ServerInfo, setAccessTokensToServers, wait } from '../../../../shared/extra-utils'
|
||||
import { MockSmtpServer } from '../../../../shared/extra-utils/miscs/email'
|
||||
import { waitJobs } from '../../../../shared/extra-utils/server/jobs'
|
||||
import { sendContactForm } from '../../../../shared/extra-utils/server/contact-form'
|
||||
import * as chai from 'chai'
|
||||
import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes'
|
||||
import { cleanupTests, flushAndRunServer, ServerInfo, setAccessTokensToServers, wait } from '../../../../shared/extra-utils'
|
||||
import { MockSmtpServer } from '../../../../shared/extra-utils/mock-servers/mock-email'
|
||||
import { sendContactForm } from '../../../../shared/extra-utils/server/contact-form'
|
||||
import { waitJobs } from '../../../../shared/extra-utils/server/jobs'
|
||||
|
||||
const expect = chai.expect
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
import 'mocha'
|
||||
import * as chai from 'chai'
|
||||
import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes'
|
||||
import {
|
||||
addVideoToBlacklist,
|
||||
askResetPassword,
|
||||
|
@ -20,9 +21,8 @@ import {
|
|||
userLogin,
|
||||
verifyEmail
|
||||
} from '../../../../shared/extra-utils'
|
||||
import { MockSmtpServer } from '../../../../shared/extra-utils/miscs/email'
|
||||
import { MockSmtpServer } from '../../../../shared/extra-utils/mock-servers/mock-email'
|
||||
import { waitJobs } from '../../../../shared/extra-utils/server/jobs'
|
||||
import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes'
|
||||
|
||||
const expect = chai.expect
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
|
||||
|
||||
import * as chai from 'chai'
|
||||
import 'mocha'
|
||||
import * as chai from 'chai'
|
||||
import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes'
|
||||
import {
|
||||
cleanupTests,
|
||||
flushAndRunServer,
|
||||
|
@ -15,11 +16,10 @@ import {
|
|||
userLogin,
|
||||
verifyEmail
|
||||
} from '../../../../shared/extra-utils'
|
||||
import { setAccessTokensToServers } from '../../../../shared/extra-utils/users/login'
|
||||
import { MockSmtpServer } from '../../../../shared/extra-utils/miscs/email'
|
||||
import { MockSmtpServer } from '../../../../shared/extra-utils/mock-servers/mock-email'
|
||||
import { waitJobs } from '../../../../shared/extra-utils/server/jobs'
|
||||
import { setAccessTokensToServers } from '../../../../shared/extra-utils/users/login'
|
||||
import { User } from '../../../../shared/models/users'
|
||||
import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes'
|
||||
|
||||
const expect = chai.expect
|
||||
|
||||
|
|
|
@ -1,20 +1,11 @@
|
|||
export * from './bulk'
|
||||
|
||||
export * from './cli'
|
||||
|
||||
export * from './custom-pages'
|
||||
|
||||
export * from './feeds'
|
||||
|
||||
export * from './logs'
|
||||
|
||||
export * from './miscs'
|
||||
export * from './mock-servers'
|
||||
|
||||
export * from './miscs/email'
|
||||
export * from './miscs/sql'
|
||||
export * from './miscs/miscs'
|
||||
export * from './miscs/stubs'
|
||||
|
||||
export * from './moderation/abuses'
|
||||
export * from './plugins/mock-blocklist'
|
||||
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
export * from './miscs'
|
||||
export * from './sql'
|
||||
export * from './stubs'
|
|
@ -1,2 +1,3 @@
|
|||
export * from './mock-email'
|
||||
export * from './mock-instances-index'
|
||||
export * from './mock-joinpeertube-versions'
|
||||
|
|
|
@ -5,7 +5,7 @@ import { inspect } from 'util'
|
|||
import { AbuseState, PluginType } from '@shared/models'
|
||||
import { HttpStatusCode } from '../../../shared/core-utils/miscs/http-error-codes'
|
||||
import { UserNotification, UserNotificationSetting, UserNotificationSettingValue, UserNotificationType } from '../../models/users'
|
||||
import { MockSmtpServer } from '../miscs/email'
|
||||
import { MockSmtpServer } from '../mock-servers/mock-email'
|
||||
import { makeGetRequest, makePostBodyRequest, makePutBodyRequest } from '../requests/requests'
|
||||
import { doubleFollow } from '../server/follows'
|
||||
import { flushAndRunMultipleServers, ServerInfo } from '../server/servers'
|
||||
|
|
Loading…
Reference in New Issue