diff options
Diffstat (limited to 'server/tests/api/server/config.ts')
-rw-r--r-- | server/tests/api/server/config.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/tests/api/server/config.ts b/server/tests/api/server/config.ts index 97cc99eea..a494858b3 100644 --- a/server/tests/api/server/config.ts +++ b/server/tests/api/server/config.ts | |||
@@ -72,6 +72,7 @@ function checkInitialConfig (server: ServerInfo, data: CustomConfig) { | |||
72 | expect(data.transcoding.resolutions['720p']).to.be.true | 72 | expect(data.transcoding.resolutions['720p']).to.be.true |
73 | expect(data.transcoding.resolutions['1080p']).to.be.true | 73 | expect(data.transcoding.resolutions['1080p']).to.be.true |
74 | expect(data.transcoding.resolutions['2160p']).to.be.true | 74 | expect(data.transcoding.resolutions['2160p']).to.be.true |
75 | expect(data.transcoding.webtorrent.enabled).to.be.true | ||
75 | expect(data.transcoding.hls.enabled).to.be.true | 76 | expect(data.transcoding.hls.enabled).to.be.true |
76 | 77 | ||
77 | expect(data.import.videos.http.enabled).to.be.true | 78 | expect(data.import.videos.http.enabled).to.be.true |
@@ -140,6 +141,7 @@ function checkUpdatedConfig (data: CustomConfig) { | |||
140 | expect(data.transcoding.resolutions['1080p']).to.be.false | 141 | expect(data.transcoding.resolutions['1080p']).to.be.false |
141 | expect(data.transcoding.resolutions['2160p']).to.be.false | 142 | expect(data.transcoding.resolutions['2160p']).to.be.false |
142 | expect(data.transcoding.hls.enabled).to.be.false | 143 | expect(data.transcoding.hls.enabled).to.be.false |
144 | expect(data.transcoding.webtorrent.enabled).to.be.true | ||
143 | 145 | ||
144 | expect(data.import.videos.http.enabled).to.be.false | 146 | expect(data.import.videos.http.enabled).to.be.false |
145 | expect(data.import.videos.torrent.enabled).to.be.false | 147 | expect(data.import.videos.torrent.enabled).to.be.false |
@@ -279,6 +281,9 @@ describe('Test config', function () { | |||
279 | '1080p': false, | 281 | '1080p': false, |
280 | '2160p': false | 282 | '2160p': false |
281 | }, | 283 | }, |
284 | webtorrent: { | ||
285 | enabled: true | ||
286 | }, | ||
282 | hls: { | 287 | hls: { |
283 | enabled: false | 288 | enabled: false |
284 | } | 289 | } |