aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api')
-rw-r--r--server/tests/api/check-params/config.ts3
-rw-r--r--server/tests/api/server/config.ts5
2 files changed, 6 insertions, 2 deletions
diff --git a/server/tests/api/check-params/config.ts b/server/tests/api/check-params/config.ts
index 8155e11ab..a0d9392dc 100644
--- a/server/tests/api/check-params/config.ts
+++ b/server/tests/api/check-params/config.ts
@@ -66,7 +66,8 @@ describe('Test config API validators', function () {
66 '360p': true, 66 '360p': true,
67 '480p': true, 67 '480p': true,
68 '720p': false, 68 '720p': false,
69 '1080p': false 69 '1080p': false,
70 '2160p': false
70 }, 71 },
71 hls: { 72 hls: {
72 enabled: false 73 enabled: false
diff --git a/server/tests/api/server/config.ts b/server/tests/api/server/config.ts
index 8ea21158a..c39516dee 100644
--- a/server/tests/api/server/config.ts
+++ b/server/tests/api/server/config.ts
@@ -59,6 +59,7 @@ function checkInitialConfig (server: ServerInfo, data: CustomConfig) {
59 expect(data.transcoding.resolutions['480p']).to.be.true 59 expect(data.transcoding.resolutions['480p']).to.be.true
60 expect(data.transcoding.resolutions['720p']).to.be.true 60 expect(data.transcoding.resolutions['720p']).to.be.true
61 expect(data.transcoding.resolutions['1080p']).to.be.true 61 expect(data.transcoding.resolutions['1080p']).to.be.true
62 expect(data.transcoding.resolutions['2160p']).to.be.true
62 expect(data.transcoding.hls.enabled).to.be.true 63 expect(data.transcoding.hls.enabled).to.be.true
63 64
64 expect(data.import.videos.http.enabled).to.be.true 65 expect(data.import.videos.http.enabled).to.be.true
@@ -109,6 +110,7 @@ function checkUpdatedConfig (data: CustomConfig) {
109 expect(data.transcoding.resolutions['480p']).to.be.true 110 expect(data.transcoding.resolutions['480p']).to.be.true
110 expect(data.transcoding.resolutions['720p']).to.be.false 111 expect(data.transcoding.resolutions['720p']).to.be.false
111 expect(data.transcoding.resolutions['1080p']).to.be.false 112 expect(data.transcoding.resolutions['1080p']).to.be.false
113 expect(data.transcoding.resolutions['2160p']).to.be.false
112 expect(data.transcoding.hls.enabled).to.be.false 114 expect(data.transcoding.hls.enabled).to.be.false
113 115
114 expect(data.import.videos.http.enabled).to.be.false 116 expect(data.import.videos.http.enabled).to.be.false
@@ -227,7 +229,8 @@ describe('Test config', function () {
227 '360p': true, 229 '360p': true,
228 '480p': true, 230 '480p': true,
229 '720p': false, 231 '720p': false,
230 '1080p': false 232 '1080p': false,
233 '2160p': false
231 }, 234 },
232 hls: { 235 hls: {
233 enabled: false 236 enabled: false