aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api')
-rw-r--r--server/tests/api/check-params/config.ts1
-rw-r--r--server/tests/api/server/config.ts12
2 files changed, 13 insertions, 0 deletions
diff --git a/server/tests/api/check-params/config.ts b/server/tests/api/check-params/config.ts
index ca8239270..3fe517fad 100644
--- a/server/tests/api/check-params/config.ts
+++ b/server/tests/api/check-params/config.ts
@@ -16,6 +16,7 @@ describe('Test config API validators', function () {
16 const updateParams: CustomConfig = { 16 const updateParams: CustomConfig = {
17 instance: { 17 instance: {
18 name: 'PeerTube updated', 18 name: 'PeerTube updated',
19 shortDescription: 'my short description',
19 description: 'my super description', 20 description: 'my super description',
20 terms: 'my super terms', 21 terms: 'my super terms',
21 defaultClientRoute: '/videos/recently-added', 22 defaultClientRoute: '/videos/recently-added',
diff --git a/server/tests/api/server/config.ts b/server/tests/api/server/config.ts
index 271a57275..e17588142 100644
--- a/server/tests/api/server/config.ts
+++ b/server/tests/api/server/config.ts
@@ -52,6 +52,10 @@ describe('Test config', function () {
52 const data = res.body as CustomConfig 52 const data = res.body as CustomConfig
53 53
54 expect(data.instance.name).to.equal('PeerTube') 54 expect(data.instance.name).to.equal('PeerTube')
55 expect(data.instance.shortDescription).to.equal(
56 'PeerTube, a federated (ActivityPub) video streaming platform using P2P (BitTorrent) directly in the web browser ' +
57 'with WebTorrent and Angular.'
58 )
55 expect(data.instance.description).to.equal('Welcome to this PeerTube instance!') 59 expect(data.instance.description).to.equal('Welcome to this PeerTube instance!')
56 expect(data.instance.terms).to.equal('No terms for now.') 60 expect(data.instance.terms).to.equal('No terms for now.')
57 expect(data.instance.defaultClientRoute).to.equal('/videos/trending') 61 expect(data.instance.defaultClientRoute).to.equal('/videos/trending')
@@ -75,6 +79,7 @@ describe('Test config', function () {
75 const newCustomConfig = { 79 const newCustomConfig = {
76 instance: { 80 instance: {
77 name: 'PeerTube updated', 81 name: 'PeerTube updated',
82 shortDescription: 'my short description',
78 description: 'my super description', 83 description: 'my super description',
79 terms: 'my super terms', 84 terms: 'my super terms',
80 defaultClientRoute: '/videos/recently-added', 85 defaultClientRoute: '/videos/recently-added',
@@ -116,6 +121,7 @@ describe('Test config', function () {
116 const data = res.body 121 const data = res.body
117 122
118 expect(data.instance.name).to.equal('PeerTube updated') 123 expect(data.instance.name).to.equal('PeerTube updated')
124 expect(data.instance.shortDescription).to.equal('my short description')
119 expect(data.instance.description).to.equal('my super description') 125 expect(data.instance.description).to.equal('my super description')
120 expect(data.instance.terms).to.equal('my super terms') 126 expect(data.instance.terms).to.equal('my super terms')
121 expect(data.instance.defaultClientRoute).to.equal('/videos/recently-added') 127 expect(data.instance.defaultClientRoute).to.equal('/videos/recently-added')
@@ -146,6 +152,7 @@ describe('Test config', function () {
146 const data = res.body 152 const data = res.body
147 153
148 expect(data.instance.name).to.equal('PeerTube updated') 154 expect(data.instance.name).to.equal('PeerTube updated')
155 expect(data.instance.shortDescription).to.equal('my short description')
149 expect(data.instance.description).to.equal('my super description') 156 expect(data.instance.description).to.equal('my super description')
150 expect(data.instance.terms).to.equal('my super terms') 157 expect(data.instance.terms).to.equal('my super terms')
151 expect(data.instance.defaultClientRoute).to.equal('/videos/recently-added') 158 expect(data.instance.defaultClientRoute).to.equal('/videos/recently-added')
@@ -170,6 +177,7 @@ describe('Test config', function () {
170 const data: About = res.body 177 const data: About = res.body
171 178
172 expect(data.instance.name).to.equal('PeerTube updated') 179 expect(data.instance.name).to.equal('PeerTube updated')
180 expect(data.instance.shortDescription).to.equal('my short description')
173 expect(data.instance.description).to.equal('my super description') 181 expect(data.instance.description).to.equal('my super description')
174 expect(data.instance.terms).to.equal('my super terms') 182 expect(data.instance.terms).to.equal('my super terms')
175 }) 183 })
@@ -183,6 +191,10 @@ describe('Test config', function () {
183 const data = res.body 191 const data = res.body
184 192
185 expect(data.instance.name).to.equal('PeerTube') 193 expect(data.instance.name).to.equal('PeerTube')
194 expect(data.instance.shortDescription).to.equal(
195 'PeerTube, a federated (ActivityPub) video streaming platform using P2P (BitTorrent) directly in the web browser ' +
196 'with WebTorrent and Angular.'
197 )
186 expect(data.instance.description).to.equal('Welcome to this PeerTube instance!') 198 expect(data.instance.description).to.equal('Welcome to this PeerTube instance!')
187 expect(data.instance.terms).to.equal('No terms for now.') 199 expect(data.instance.terms).to.equal('No terms for now.')
188 expect(data.instance.defaultClientRoute).to.equal('/videos/trending') 200 expect(data.instance.defaultClientRoute).to.equal('/videos/trending')