aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-02-18 11:07:08 +0100
committerChocobozzz <chocobozzz@cpy.re>2021-02-18 13:38:09 +0100
commitb3d5cb92b100406df98e5cd1f54eff9cd2078b1c (patch)
tree234c9b0b799424c1599af0dee27e84e4ad7240ff /server/tests/api
parentd9a2a03196275065c28f4a0b7d4d7bc9992d77a1 (diff)
downloadPeerTube-b3d5cb92b100406df98e5cd1f54eff9cd2078b1c.tar.gz
PeerTube-b3d5cb92b100406df98e5cd1f54eff9cd2078b1c.tar.zst
PeerTube-b3d5cb92b100406df98e5cd1f54eff9cd2078b1c.zip
Add ability to update torrents cache in client
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, 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: {