Fix dependency errors between modules
This commit is contained in:
parent
ae28cdf327
commit
92e07c3b5d
8 changed files with 18 additions and 11 deletions
|
@ -12,7 +12,7 @@ import { getOrCreateVideoAndAccountAndChannel } from '../videos'
|
||||||
import { forwardVideoRelatedActivity } from '../send/utils'
|
import { forwardVideoRelatedActivity } from '../send/utils'
|
||||||
import { Redis } from '../../redis'
|
import { Redis } from '../../redis'
|
||||||
import { createOrUpdateCacheFile } from '../cache-file'
|
import { createOrUpdateCacheFile } from '../cache-file'
|
||||||
import { immutableAssign } from '../../../tests/utils'
|
import { immutableAssign } from '../../../../shared/utils'
|
||||||
import { getVideoDislikeActivityPubUrl } from '../url'
|
import { getVideoDislikeActivityPubUrl } from '../url'
|
||||||
import { VideoModel } from '../../../models/video/video'
|
import { VideoModel } from '../../../models/video/video'
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ import { AccountVideoRateModel } from '../../../models/account/account-video-rat
|
||||||
import { ActorModel } from '../../../models/activitypub/actor'
|
import { ActorModel } from '../../../models/activitypub/actor'
|
||||||
import { forwardVideoRelatedActivity } from '../send/utils'
|
import { forwardVideoRelatedActivity } from '../send/utils'
|
||||||
import { getOrCreateVideoAndAccountAndChannel } from '../videos'
|
import { getOrCreateVideoAndAccountAndChannel } from '../videos'
|
||||||
import { immutableAssign } from '../../../tests/utils'
|
import { immutableAssign } from '../../../../shared/utils'
|
||||||
import { getVideoDislikeActivityPubUrl, getVideoLikeActivityPubUrl } from '../url'
|
import { getVideoDislikeActivityPubUrl, getVideoLikeActivityPubUrl } from '../url'
|
||||||
|
|
||||||
async function processLikeActivity (activity: ActivityLike, byActor: ActorModel) {
|
async function processLikeActivity (activity: ActivityLike, byActor: ActorModel) {
|
||||||
|
|
|
@ -9,7 +9,7 @@ import {
|
||||||
runServer,
|
runServer,
|
||||||
ServerInfo,
|
ServerInfo,
|
||||||
setAccessTokensToServers
|
setAccessTokensToServers
|
||||||
} from '../../shared/utils'
|
} from '../../../../shared/utils'
|
||||||
|
|
||||||
|
|
||||||
const expect = chai.expect
|
const expect = chai.expect
|
||||||
|
|
|
@ -13,10 +13,10 @@ import {
|
||||||
setAccessTokensToServers,
|
setAccessTokensToServers,
|
||||||
uploadVideo,
|
uploadVideo,
|
||||||
userLogin
|
userLogin
|
||||||
} from '../../utils'
|
} from '../../../../shared/utils'
|
||||||
import * as chai from 'chai'
|
import * as chai from 'chai'
|
||||||
import { setActorField, setVideoField } from '../../utils/miscs/sql'
|
import { setActorField, setVideoField } from '../../utils/miscs/sql'
|
||||||
import { waitJobs } from '../../utils/server/jobs'
|
import { waitJobs } from '../../../../shared/utils/server/jobs'
|
||||||
import { Video } from '../../../../shared/models/videos'
|
import { Video } from '../../../../shared/models/videos'
|
||||||
|
|
||||||
const expect = chai.expect
|
const expect = chai.expect
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
import 'mocha'
|
import 'mocha'
|
||||||
import { expect } from 'chai'
|
import { expect } from 'chai'
|
||||||
import { buildRequestStub } from '../../utils'
|
import { buildRequestStub } from '../../utils/miscs/stubs'
|
||||||
import { isHTTPSignatureVerified, isJsonLDSignatureVerified, parseHTTPSignature } from '../../../helpers/peertube-crypto'
|
import { isHTTPSignatureVerified, isJsonLDSignatureVerified, parseHTTPSignature } from '../../../helpers/peertube-crypto'
|
||||||
import { cloneDeep } from 'lodash'
|
import { cloneDeep } from 'lodash'
|
||||||
import { buildSignedActivity } from '../../../helpers/activitypub'
|
import { buildSignedActivity } from '../../../helpers/activitypub'
|
||||||
|
|
|
@ -2,7 +2,16 @@
|
||||||
|
|
||||||
import 'mocha'
|
import 'mocha'
|
||||||
|
|
||||||
import { flushAndRunMultipleServers, flushTests, killallServers, makePOSTAPRequest, makeFollowRequest, ServerInfo } from '../../utils'
|
import {
|
||||||
|
flushAndRunMultipleServers,
|
||||||
|
flushTests,
|
||||||
|
killallServers,
|
||||||
|
ServerInfo
|
||||||
|
} from '../../../../shared/utils'
|
||||||
|
import {
|
||||||
|
makePOSTAPRequest,
|
||||||
|
makeFollowRequest,
|
||||||
|
} from '../../utils/requests/activitypub'
|
||||||
import { HTTP_SIGNATURE } from '../../../initializers'
|
import { HTTP_SIGNATURE } from '../../../initializers'
|
||||||
import { buildDigest, buildGlobalHeaders } from '../../../lib/job-queue/handlers/utils/activitypub-http-utils'
|
import { buildDigest, buildGlobalHeaders } from '../../../lib/job-queue/handlers/utils/activitypub-http-utils'
|
||||||
import * as chai from 'chai'
|
import * as chai from 'chai'
|
||||||
|
|
|
@ -4,8 +4,8 @@ import {
|
||||||
flushTests,
|
flushTests,
|
||||||
killallServers,
|
killallServers,
|
||||||
ServerInfo
|
ServerInfo
|
||||||
} from '../../utils/index'
|
} from '../../../../shared/utils'
|
||||||
import { runServer } from '../../utils/server/servers'
|
import { runServer } from '../../../../shared/utils/server/servers'
|
||||||
|
|
||||||
describe('Start and stop server without web client routes', function () {
|
describe('Start and stop server without web client routes', function () {
|
||||||
let server: ServerInfo
|
let server: ServerInfo
|
||||||
|
|
|
@ -4,10 +4,8 @@ export * from './server/clients'
|
||||||
export * from './server/config'
|
export * from './server/config'
|
||||||
export * from './users/login'
|
export * from './users/login'
|
||||||
export * from './miscs/miscs'
|
export * from './miscs/miscs'
|
||||||
export * from './miscs/stubs'
|
|
||||||
export * from './server/follows'
|
export * from './server/follows'
|
||||||
export * from './requests/requests'
|
export * from './requests/requests'
|
||||||
export * from './requests/activitypub'
|
|
||||||
export * from './server/servers'
|
export * from './server/servers'
|
||||||
export * from './videos/services'
|
export * from './videos/services'
|
||||||
export * from './users/users'
|
export * from './users/users'
|
||||||
|
|
Loading…
Reference in a new issue