diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2021-01-26 01:53:13 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2021-01-28 15:55:34 +0100 |
commit | 3da68f0a781ebd893521e2e6fa200280c92ae815 (patch) | |
tree | 11bddf841118703c725a96851318603407fd581d /server/tests | |
parent | 28eeb811c40325a28208231324f66f4032e5cf67 (diff) | |
download | PeerTube-3da68f0a781ebd893521e2e6fa200280c92ae815.tar.gz PeerTube-3da68f0a781ebd893521e2e6fa200280c92ae815.tar.zst PeerTube-3da68f0a781ebd893521e2e6fa200280c92ae815.zip |
add default trending page choice, revert comments count for hot strategy
Diffstat (limited to 'server/tests')
-rw-r--r-- | server/tests/api/check-params/config.ts | 10 | ||||
-rw-r--r-- | server/tests/api/server/config.ts | 10 | ||||
-rw-r--r-- | server/tests/client.ts | 2 |
3 files changed, 19 insertions, 3 deletions
diff --git a/server/tests/api/check-params/config.ts b/server/tests/api/check-params/config.ts index e36cdeab2..e58e0cd9f 100644 --- a/server/tests/api/check-params/config.ts +++ b/server/tests/api/check-params/config.ts | |||
@@ -41,8 +41,16 @@ describe('Test config API validators', function () { | |||
41 | categories: [ 1, 2 ], | 41 | categories: [ 1, 2 ], |
42 | 42 | ||
43 | isNSFW: true, | 43 | isNSFW: true, |
44 | defaultClientRoute: '/videos/recently-added', | ||
45 | defaultNSFWPolicy: 'blur', | 44 | defaultNSFWPolicy: 'blur', |
45 | |||
46 | defaultClientRoute: '/videos/recently-added', | ||
47 | defaultTrendingRoute: '/videos/trending', | ||
48 | pages: { | ||
49 | hot: { | ||
50 | enabled: true | ||
51 | } | ||
52 | }, | ||
53 | |||
46 | customizations: { | 54 | customizations: { |
47 | javascript: 'alert("coucou")', | 55 | javascript: 'alert("coucou")', |
48 | css: 'body { background-color: red; }' | 56 | css: 'body { background-color: red; }' |
diff --git a/server/tests/api/server/config.ts b/server/tests/api/server/config.ts index af25f4800..328f4852a 100644 --- a/server/tests/api/server/config.ts +++ b/server/tests/api/server/config.ts | |||
@@ -272,9 +272,17 @@ describe('Test config', function () { | |||
272 | languages: [ 'en', 'es' ], | 272 | languages: [ 'en', 'es' ], |
273 | categories: [ 1, 2 ], | 273 | categories: [ 1, 2 ], |
274 | 274 | ||
275 | defaultClientRoute: '/videos/recently-added', | ||
276 | isNSFW: true, | 275 | isNSFW: true, |
277 | defaultNSFWPolicy: 'blur' as 'blur', | 276 | defaultNSFWPolicy: 'blur' as 'blur', |
277 | |||
278 | defaultClientRoute: '/videos/recently-added', | ||
279 | defaultTrendingRoute: '/videos/trending', | ||
280 | pages: { | ||
281 | hot: { | ||
282 | enabled: true | ||
283 | } | ||
284 | }, | ||
285 | |||
278 | customizations: { | 286 | customizations: { |
279 | javascript: 'alert("coucou")', | 287 | javascript: 'alert("coucou")', |
280 | css: 'body { background-color: red; }' | 288 | css: 'body { background-color: red; }' |
diff --git a/server/tests/client.ts b/server/tests/client.ts index 7572fd34a..d608764ee 100644 --- a/server/tests/client.ts +++ b/server/tests/client.ts | |||
@@ -308,8 +308,8 @@ describe('Test a client controllers', function () { | |||
308 | shortDescription: 'my short description', | 308 | shortDescription: 'my short description', |
309 | description: 'my super description', | 309 | description: 'my super description', |
310 | terms: 'my super terms', | 310 | terms: 'my super terms', |
311 | defaultClientRoute: '/videos/recently-added', | ||
312 | defaultNSFWPolicy: 'blur', | 311 | defaultNSFWPolicy: 'blur', |
312 | defaultClientRoute: '/videos/recently-added', | ||
313 | customizations: { | 313 | customizations: { |
314 | javascript: 'alert("coucou")', | 314 | javascript: 'alert("coucou")', |
315 | css: 'body { background-color: red; }' | 315 | css: 'body { background-color: red; }' |