From b3d5cb92b100406df98e5cd1f54eff9cd2078b1c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 18 Feb 2021 11:07:08 +0100 Subject: Add ability to update torrents cache in client --- server/tests/api/check-params/config.ts | 3 +++ server/tests/api/server/config.ts | 5 +++++ 2 files changed, 8 insertions(+) (limited to 'server/tests/api') 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 () { }, captions: { size: 3 + }, + torrents: { + size: 4 } }, 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) { 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: { -- cgit v1.2.3