aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/api/check-params/config.ts3
-rw-r--r--server/tests/api/server/config.ts5
2 files changed, 8 insertions, 0 deletions
diff --git a/server/tests/api/check-params/config.ts b/server/tests/api/check-params/config.ts
index c7eb3189b..004aa65b3 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 }, 65 },
66 captions: { 66 captions: {
67 size: 3 67 size: 3
68 },
69 torrents: {
70 size: 4
68 } 71 }
69 }, 72 },
70 signup: { 73 signup: {
diff --git a/server/tests/api/server/config.ts b/server/tests/api/server/config.ts
index b2371614f..0b0f48d22 100644
--- a/server/tests/api/server/config.ts
+++ b/server/tests/api/server/config.ts
@@ -55,6 +55,7 @@ function checkInitialConfig (server: ServerInfo, data: CustomConfig) {
55 55
56 expect(data.cache.previews.size).to.equal(1) 56 expect(data.cache.previews.size).to.equal(1)
57 expect(data.cache.captions.size).to.equal(1) 57 expect(data.cache.captions.size).to.equal(1)
58 expect(data.cache.torrents.size).to.equal(1)
58 59
59 expect(data.signup.enabled).to.be.true 60 expect(data.signup.enabled).to.be.true
60 expect(data.signup.limit).to.equal(4) 61 expect(data.signup.limit).to.equal(4)
@@ -144,6 +145,7 @@ function checkUpdatedConfig (data: CustomConfig) {
144 145
145 expect(data.cache.previews.size).to.equal(2) 146 expect(data.cache.previews.size).to.equal(2)
146 expect(data.cache.captions.size).to.equal(3) 147 expect(data.cache.captions.size).to.equal(3)
148 expect(data.cache.torrents.size).to.equal(4)
147 149
148 expect(data.signup.enabled).to.be.false 150 expect(data.signup.enabled).to.be.false
149 expect(data.signup.limit).to.equal(5) 151 expect(data.signup.limit).to.equal(5)
@@ -305,6 +307,9 @@ describe('Test config', function () {
305 }, 307 },
306 captions: { 308 captions: {
307 size: 3 309 size: 3
310 },
311 torrents: {
312 size: 4
308 } 313 }
309 }, 314 },
310 signup: { 315 signup: {