diff options
Diffstat (limited to 'server/tests')
-rw-r--r-- | server/tests/api/check-params/config.ts | 3 | ||||
-rw-r--r-- | server/tests/api/server/config.ts | 5 | ||||
-rw-r--r-- | server/tests/utils/server/config.ts | 3 |
3 files changed, 11 insertions, 0 deletions
diff --git a/server/tests/api/check-params/config.ts b/server/tests/api/check-params/config.ts index 2742e26de..b26dfa252 100644 --- a/server/tests/api/check-params/config.ts +++ b/server/tests/api/check-params/config.ts | |||
@@ -65,6 +65,9 @@ describe('Test config API validators', function () { | |||
65 | videos: { | 65 | videos: { |
66 | http: { | 66 | http: { |
67 | enabled: false | 67 | enabled: false |
68 | }, | ||
69 | torrent: { | ||
70 | enabled: false | ||
68 | } | 71 | } |
69 | } | 72 | } |
70 | } | 73 | } |
diff --git a/server/tests/api/server/config.ts b/server/tests/api/server/config.ts index b65061a5d..f9805b6ea 100644 --- a/server/tests/api/server/config.ts +++ b/server/tests/api/server/config.ts | |||
@@ -45,6 +45,7 @@ function checkInitialConfig (data: CustomConfig) { | |||
45 | expect(data.transcoding.resolutions['720p']).to.be.true | 45 | expect(data.transcoding.resolutions['720p']).to.be.true |
46 | expect(data.transcoding.resolutions['1080p']).to.be.true | 46 | expect(data.transcoding.resolutions['1080p']).to.be.true |
47 | expect(data.import.videos.http.enabled).to.be.true | 47 | expect(data.import.videos.http.enabled).to.be.true |
48 | expect(data.import.videos.torrent.enabled).to.be.true | ||
48 | } | 49 | } |
49 | 50 | ||
50 | function checkUpdatedConfig (data: CustomConfig) { | 51 | function checkUpdatedConfig (data: CustomConfig) { |
@@ -72,6 +73,7 @@ function checkUpdatedConfig (data: CustomConfig) { | |||
72 | expect(data.transcoding.resolutions['720p']).to.be.false | 73 | expect(data.transcoding.resolutions['720p']).to.be.false |
73 | expect(data.transcoding.resolutions['1080p']).to.be.false | 74 | expect(data.transcoding.resolutions['1080p']).to.be.false |
74 | expect(data.import.videos.http.enabled).to.be.false | 75 | expect(data.import.videos.http.enabled).to.be.false |
76 | expect(data.import.videos.torrent.enabled).to.be.false | ||
75 | } | 77 | } |
76 | 78 | ||
77 | describe('Test config', function () { | 79 | describe('Test config', function () { |
@@ -167,6 +169,9 @@ describe('Test config', function () { | |||
167 | videos: { | 169 | videos: { |
168 | http: { | 170 | http: { |
169 | enabled: false | 171 | enabled: false |
172 | }, | ||
173 | torrent: { | ||
174 | enabled: false | ||
170 | } | 175 | } |
171 | } | 176 | } |
172 | } | 177 | } |
diff --git a/server/tests/utils/server/config.ts b/server/tests/utils/server/config.ts index e21614282..d6ac3ef8a 100644 --- a/server/tests/utils/server/config.ts +++ b/server/tests/utils/server/config.ts | |||
@@ -97,6 +97,9 @@ function updateCustomSubConfig (url: string, token: string, newConfig: any) { | |||
97 | videos: { | 97 | videos: { |
98 | http: { | 98 | http: { |
99 | enabled: false | 99 | enabled: false |
100 | }, | ||
101 | torrent: { | ||
102 | enabled: false | ||
100 | } | 103 | } |
101 | } | 104 | } |
102 | } | 105 | } |