1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 10:49:28 +02:00

Add ability to update torrents cache in client

This commit is contained in:
Chocobozzz 2021-02-18 11:07:08 +01:00 committed by Chocobozzz
parent d9a2a03196
commit b3d5cb92b1
12 changed files with 41 additions and 4 deletions

View file

@ -65,6 +65,9 @@ describe('Test config API validators', function () {
},
captions: {
size: 3
},
torrents: {
size: 4
}
},
signup: {

View file

@ -55,6 +55,7 @@ function checkInitialConfig (server: ServerInfo, data: CustomConfig) {
expect(data.cache.previews.size).to.equal(1)
expect(data.cache.captions.size).to.equal(1)
expect(data.cache.torrents.size).to.equal(1)
expect(data.signup.enabled).to.be.true
expect(data.signup.limit).to.equal(4)
@ -144,6 +145,7 @@ function checkUpdatedConfig (data: CustomConfig) {
expect(data.cache.previews.size).to.equal(2)
expect(data.cache.captions.size).to.equal(3)
expect(data.cache.torrents.size).to.equal(4)
expect(data.signup.enabled).to.be.false
expect(data.signup.limit).to.equal(5)
@ -305,6 +307,9 @@ describe('Test config', function () {
},
captions: {
size: 3
},
torrents: {
size: 4
}
},
signup: {