From 901637bb87f5eb0518fb7ca69d98b53ed918339e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 1 Mar 2018 13:57:29 +0100 Subject: Add ability to change the homepage --- server/tests/api/check-params/config.ts | 1 + server/tests/api/server/config.ts | 5 +++++ 2 files changed, 6 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 a66e51a6a..ca8239270 100644 --- a/server/tests/api/check-params/config.ts +++ b/server/tests/api/check-params/config.ts @@ -18,6 +18,7 @@ describe('Test config API validators', function () { name: 'PeerTube updated', description: 'my super description', terms: 'my super terms', + defaultClientRoute: '/videos/recently-added', customizations: { javascript: 'alert("coucou")', css: 'body { background-color: red; }' diff --git a/server/tests/api/server/config.ts b/server/tests/api/server/config.ts index 3d90580d8..271a57275 100644 --- a/server/tests/api/server/config.ts +++ b/server/tests/api/server/config.ts @@ -54,6 +54,7 @@ describe('Test config', function () { expect(data.instance.name).to.equal('PeerTube') expect(data.instance.description).to.equal('Welcome to this PeerTube instance!') expect(data.instance.terms).to.equal('No terms for now.') + expect(data.instance.defaultClientRoute).to.equal('/videos/trending') expect(data.instance.customizations.css).to.be.empty expect(data.instance.customizations.javascript).to.be.empty expect(data.cache.previews.size).to.equal(1) @@ -76,6 +77,7 @@ describe('Test config', function () { name: 'PeerTube updated', description: 'my super description', terms: 'my super terms', + defaultClientRoute: '/videos/recently-added', customizations: { javascript: 'alert("coucou")', css: 'body { background-color: red; }' @@ -116,6 +118,7 @@ describe('Test config', function () { expect(data.instance.name).to.equal('PeerTube updated') expect(data.instance.description).to.equal('my super description') expect(data.instance.terms).to.equal('my super terms') + expect(data.instance.defaultClientRoute).to.equal('/videos/recently-added') expect(data.instance.customizations.javascript).to.equal('alert("coucou")') expect(data.instance.customizations.css).to.equal('body { background-color: red; }') expect(data.cache.previews.size).to.equal(2) @@ -145,6 +148,7 @@ describe('Test config', function () { expect(data.instance.name).to.equal('PeerTube updated') expect(data.instance.description).to.equal('my super description') expect(data.instance.terms).to.equal('my super terms') + expect(data.instance.defaultClientRoute).to.equal('/videos/recently-added') expect(data.instance.customizations.javascript).to.equal('alert("coucou")') expect(data.instance.customizations.css).to.equal('body { background-color: red; }') expect(data.cache.previews.size).to.equal(2) @@ -181,6 +185,7 @@ describe('Test config', function () { expect(data.instance.name).to.equal('PeerTube') expect(data.instance.description).to.equal('Welcome to this PeerTube instance!') expect(data.instance.terms).to.equal('No terms for now.') + expect(data.instance.defaultClientRoute).to.equal('/videos/trending') expect(data.instance.customizations.css).to.be.empty expect(data.instance.customizations.javascript).to.be.empty expect(data.cache.previews.size).to.equal(1) -- cgit v1.2.3