diff options
author | buoyantair <buoyantair@protonmail.com> | 2018-11-16 02:51:26 +0530 |
---|---|---|
committer | buoyantair <buoyantair@protonmail.com> | 2018-11-16 02:51:26 +0530 |
commit | 92e07c3b5d9dbf2febedb1b5b87ec676eb6d1ac8 (patch) | |
tree | c5e0d6a46d1eb1b96e4bc9509d209fecc3fb23ad /server/tests | |
parent | ae28cdf327d782e629379eee1999096ca2a5d74b (diff) | |
download | PeerTube-92e07c3b5d9dbf2febedb1b5b87ec676eb6d1ac8.tar.gz PeerTube-92e07c3b5d9dbf2febedb1b5b87ec676eb6d1ac8.tar.zst PeerTube-92e07c3b5d9dbf2febedb1b5b87ec676eb6d1ac8.zip |
Fix dependency errors between modules
Diffstat (limited to 'server/tests')
-rw-r--r-- | server/tests/api/activitypub/client.ts | 2 | ||||
-rw-r--r-- | server/tests/api/activitypub/fetch.ts | 4 | ||||
-rw-r--r-- | server/tests/api/activitypub/helpers.ts | 2 | ||||
-rw-r--r-- | server/tests/api/activitypub/security.ts | 11 | ||||
-rw-r--r-- | server/tests/api/server/no-client.ts | 4 |
5 files changed, 16 insertions, 7 deletions
diff --git a/server/tests/api/activitypub/client.ts b/server/tests/api/activitypub/client.ts index 334cd4e5c..d45232c8d 100644 --- a/server/tests/api/activitypub/client.ts +++ b/server/tests/api/activitypub/client.ts | |||
@@ -9,7 +9,7 @@ import { | |||
9 | runServer, | 9 | runServer, |
10 | ServerInfo, | 10 | ServerInfo, |
11 | setAccessTokensToServers | 11 | setAccessTokensToServers |
12 | } from '../../shared/utils' | 12 | } from '../../../../shared/utils' |
13 | 13 | ||
14 | 14 | ||
15 | const expect = chai.expect | 15 | const expect = chai.expect |
diff --git a/server/tests/api/activitypub/fetch.ts b/server/tests/api/activitypub/fetch.ts index a42c606c6..e84eb18bb 100644 --- a/server/tests/api/activitypub/fetch.ts +++ b/server/tests/api/activitypub/fetch.ts | |||
@@ -13,10 +13,10 @@ import { | |||
13 | setAccessTokensToServers, | 13 | setAccessTokensToServers, |
14 | uploadVideo, | 14 | uploadVideo, |
15 | userLogin | 15 | userLogin |
16 | } from '../../utils' | 16 | } from '../../../../shared/utils' |
17 | import * as chai from 'chai' | 17 | import * as chai from 'chai' |
18 | import { setActorField, setVideoField } from '../../utils/miscs/sql' | 18 | import { setActorField, setVideoField } from '../../utils/miscs/sql' |
19 | import { waitJobs } from '../../utils/server/jobs' | 19 | import { waitJobs } from '../../../../shared/utils/server/jobs' |
20 | import { Video } from '../../../../shared/models/videos' | 20 | import { Video } from '../../../../shared/models/videos' |
21 | 21 | ||
22 | const expect = chai.expect | 22 | const expect = chai.expect |
diff --git a/server/tests/api/activitypub/helpers.ts b/server/tests/api/activitypub/helpers.ts index 610846247..4c42f3d67 100644 --- a/server/tests/api/activitypub/helpers.ts +++ b/server/tests/api/activitypub/helpers.ts | |||
@@ -2,7 +2,7 @@ | |||
2 | 2 | ||
3 | import 'mocha' | 3 | import 'mocha' |
4 | import { expect } from 'chai' | 4 | import { expect } from 'chai' |
5 | import { buildRequestStub } from '../../utils' | 5 | import { buildRequestStub } from '../../utils/miscs/stubs' |
6 | import { isHTTPSignatureVerified, isJsonLDSignatureVerified, parseHTTPSignature } from '../../../helpers/peertube-crypto' | 6 | import { isHTTPSignatureVerified, isJsonLDSignatureVerified, parseHTTPSignature } from '../../../helpers/peertube-crypto' |
7 | import { cloneDeep } from 'lodash' | 7 | import { cloneDeep } from 'lodash' |
8 | import { buildSignedActivity } from '../../../helpers/activitypub' | 8 | import { buildSignedActivity } from '../../../helpers/activitypub' |
diff --git a/server/tests/api/activitypub/security.ts b/server/tests/api/activitypub/security.ts index e7899bb14..69b7c0148 100644 --- a/server/tests/api/activitypub/security.ts +++ b/server/tests/api/activitypub/security.ts | |||
@@ -2,7 +2,16 @@ | |||
2 | 2 | ||
3 | import 'mocha' | 3 | import 'mocha' |
4 | 4 | ||
5 | import { flushAndRunMultipleServers, flushTests, killallServers, makePOSTAPRequest, makeFollowRequest, ServerInfo } from '../../utils' | 5 | import { |
6 | flushAndRunMultipleServers, | ||
7 | flushTests, | ||
8 | killallServers, | ||
9 | ServerInfo | ||
10 | } from '../../../../shared/utils' | ||
11 | import { | ||
12 | makePOSTAPRequest, | ||
13 | makeFollowRequest, | ||
14 | } from '../../utils/requests/activitypub' | ||
6 | import { HTTP_SIGNATURE } from '../../../initializers' | 15 | import { HTTP_SIGNATURE } from '../../../initializers' |
7 | import { buildDigest, buildGlobalHeaders } from '../../../lib/job-queue/handlers/utils/activitypub-http-utils' | 16 | import { buildDigest, buildGlobalHeaders } from '../../../lib/job-queue/handlers/utils/activitypub-http-utils' |
8 | import * as chai from 'chai' | 17 | import * as chai from 'chai' |
diff --git a/server/tests/api/server/no-client.ts b/server/tests/api/server/no-client.ts index 6d6ce8532..3b95ce945 100644 --- a/server/tests/api/server/no-client.ts +++ b/server/tests/api/server/no-client.ts | |||
@@ -4,8 +4,8 @@ import { | |||
4 | flushTests, | 4 | flushTests, |
5 | killallServers, | 5 | killallServers, |
6 | ServerInfo | 6 | ServerInfo |
7 | } from '../../utils/index' | 7 | } from '../../../../shared/utils' |
8 | import { runServer } from '../../utils/server/servers' | 8 | import { runServer } from '../../../../shared/utils/server/servers' |
9 | 9 | ||
10 | describe('Start and stop server without web client routes', function () { | 10 | describe('Start and stop server without web client routes', function () { |
11 | let server: ServerInfo | 11 | let server: ServerInfo |