diff options
author | Chocobozzz <me@florianbigard.com> | 2018-03-01 13:57:29 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-03-01 13:57:29 +0100 |
commit | 901637bb87f5eb0518fb7ca69d98b53ed918339e (patch) | |
tree | a8e8943fef7a109ba269d33029174cbdf4dde6d2 /server/tests/api | |
parent | a73c582e5b6f5c52427b38aaf55b3afbead24053 (diff) | |
download | PeerTube-901637bb87f5eb0518fb7ca69d98b53ed918339e.tar.gz PeerTube-901637bb87f5eb0518fb7ca69d98b53ed918339e.tar.zst PeerTube-901637bb87f5eb0518fb7ca69d98b53ed918339e.zip |
Add ability to change the homepage
Diffstat (limited to 'server/tests/api')
-rw-r--r-- | server/tests/api/check-params/config.ts | 1 | ||||
-rw-r--r-- | server/tests/api/server/config.ts | 5 |
2 files changed, 6 insertions, 0 deletions
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 () { | |||
18 | name: 'PeerTube updated', | 18 | name: 'PeerTube updated', |
19 | description: 'my super description', | 19 | description: 'my super description', |
20 | terms: 'my super terms', | 20 | terms: 'my super terms', |
21 | defaultClientRoute: '/videos/recently-added', | ||
21 | customizations: { | 22 | customizations: { |
22 | javascript: 'alert("coucou")', | 23 | javascript: 'alert("coucou")', |
23 | css: 'body { background-color: red; }' | 24 | 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 () { | |||
54 | expect(data.instance.name).to.equal('PeerTube') | 54 | expect(data.instance.name).to.equal('PeerTube') |
55 | expect(data.instance.description).to.equal('Welcome to this PeerTube instance!') | 55 | expect(data.instance.description).to.equal('Welcome to this PeerTube instance!') |
56 | expect(data.instance.terms).to.equal('No terms for now.') | 56 | expect(data.instance.terms).to.equal('No terms for now.') |
57 | expect(data.instance.defaultClientRoute).to.equal('/videos/trending') | ||
57 | expect(data.instance.customizations.css).to.be.empty | 58 | expect(data.instance.customizations.css).to.be.empty |
58 | expect(data.instance.customizations.javascript).to.be.empty | 59 | expect(data.instance.customizations.javascript).to.be.empty |
59 | expect(data.cache.previews.size).to.equal(1) | 60 | expect(data.cache.previews.size).to.equal(1) |
@@ -76,6 +77,7 @@ describe('Test config', function () { | |||
76 | name: 'PeerTube updated', | 77 | name: 'PeerTube updated', |
77 | description: 'my super description', | 78 | description: 'my super description', |
78 | terms: 'my super terms', | 79 | terms: 'my super terms', |
80 | defaultClientRoute: '/videos/recently-added', | ||
79 | customizations: { | 81 | customizations: { |
80 | javascript: 'alert("coucou")', | 82 | javascript: 'alert("coucou")', |
81 | css: 'body { background-color: red; }' | 83 | css: 'body { background-color: red; }' |
@@ -116,6 +118,7 @@ describe('Test config', function () { | |||
116 | expect(data.instance.name).to.equal('PeerTube updated') | 118 | expect(data.instance.name).to.equal('PeerTube updated') |
117 | expect(data.instance.description).to.equal('my super description') | 119 | expect(data.instance.description).to.equal('my super description') |
118 | expect(data.instance.terms).to.equal('my super terms') | 120 | expect(data.instance.terms).to.equal('my super terms') |
121 | expect(data.instance.defaultClientRoute).to.equal('/videos/recently-added') | ||
119 | expect(data.instance.customizations.javascript).to.equal('alert("coucou")') | 122 | expect(data.instance.customizations.javascript).to.equal('alert("coucou")') |
120 | expect(data.instance.customizations.css).to.equal('body { background-color: red; }') | 123 | expect(data.instance.customizations.css).to.equal('body { background-color: red; }') |
121 | expect(data.cache.previews.size).to.equal(2) | 124 | expect(data.cache.previews.size).to.equal(2) |
@@ -145,6 +148,7 @@ describe('Test config', function () { | |||
145 | expect(data.instance.name).to.equal('PeerTube updated') | 148 | expect(data.instance.name).to.equal('PeerTube updated') |
146 | expect(data.instance.description).to.equal('my super description') | 149 | expect(data.instance.description).to.equal('my super description') |
147 | expect(data.instance.terms).to.equal('my super terms') | 150 | expect(data.instance.terms).to.equal('my super terms') |
151 | expect(data.instance.defaultClientRoute).to.equal('/videos/recently-added') | ||
148 | expect(data.instance.customizations.javascript).to.equal('alert("coucou")') | 152 | expect(data.instance.customizations.javascript).to.equal('alert("coucou")') |
149 | expect(data.instance.customizations.css).to.equal('body { background-color: red; }') | 153 | expect(data.instance.customizations.css).to.equal('body { background-color: red; }') |
150 | expect(data.cache.previews.size).to.equal(2) | 154 | expect(data.cache.previews.size).to.equal(2) |
@@ -181,6 +185,7 @@ describe('Test config', function () { | |||
181 | expect(data.instance.name).to.equal('PeerTube') | 185 | expect(data.instance.name).to.equal('PeerTube') |
182 | expect(data.instance.description).to.equal('Welcome to this PeerTube instance!') | 186 | expect(data.instance.description).to.equal('Welcome to this PeerTube instance!') |
183 | expect(data.instance.terms).to.equal('No terms for now.') | 187 | expect(data.instance.terms).to.equal('No terms for now.') |
188 | expect(data.instance.defaultClientRoute).to.equal('/videos/trending') | ||
184 | expect(data.instance.customizations.css).to.be.empty | 189 | expect(data.instance.customizations.css).to.be.empty |
185 | expect(data.instance.customizations.javascript).to.be.empty | 190 | expect(data.instance.customizations.javascript).to.be.empty |
186 | expect(data.cache.previews.size).to.equal(1) | 191 | expect(data.cache.previews.size).to.equal(1) |