From ba5d4a849c7d7ba05f093480ae12286c4af61556 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Wed, 27 Jan 2021 17:15:21 +0100 Subject: move from trending routes to alg param --- server/tests/api/check-params/config.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'server/tests/api/check-params') diff --git a/server/tests/api/check-params/config.ts b/server/tests/api/check-params/config.ts index e58e0cd9f..d3ae5fe0a 100644 --- a/server/tests/api/check-params/config.ts +++ b/server/tests/api/check-params/config.ts @@ -44,12 +44,6 @@ describe('Test config API validators', function () { defaultNSFWPolicy: 'blur', defaultClientRoute: '/videos/recently-added', - defaultTrendingRoute: '/videos/trending', - pages: { - hot: { - enabled: true - } - }, customizations: { javascript: 'alert("coucou")', @@ -142,6 +136,14 @@ describe('Test config API validators', function () { } } }, + trending: { + videos: { + algorithms: { + enabled: [ 'hot', 'most-viewed', 'most-liked' ], + default: 'most-viewed' + } + } + }, autoBlacklist: { videos: { ofUsers: { -- cgit v1.2.3