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