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.ts3
2 files changed, 4 insertions, 0 deletions
diff --git a/server/tests/api/check-params/config.ts b/server/tests/api/check-params/config.ts
index f716dc673..9b902a1cd 100644
--- a/server/tests/api/check-params/config.ts
+++ b/server/tests/api/check-params/config.ts
@@ -29,6 +29,7 @@ describe('Test config API validators', function () {
29 terms: 'my super terms', 29 terms: 'my super terms',
30 codeOfConduct: 'my super coc', 30 codeOfConduct: 'my super coc',
31 31
32 creationReason: 'my super reason',
32 moderationInformation: 'my super moderation information', 33 moderationInformation: 'my super moderation information',
33 administrator: 'Kuja', 34 administrator: 'Kuja',
34 maintenanceLifetime: 'forever', 35 maintenanceLifetime: 'forever',
diff --git a/server/tests/api/server/config.ts b/server/tests/api/server/config.ts
index da75495a5..85d0f9702 100644
--- a/server/tests/api/server/config.ts
+++ b/server/tests/api/server/config.ts
@@ -30,6 +30,7 @@ function checkInitialConfig (server: ServerInfo, data: CustomConfig) {
30 expect(data.instance.description).to.equal('Welcome to this PeerTube instance!') 30 expect(data.instance.description).to.equal('Welcome to this PeerTube instance!')
31 31
32 expect(data.instance.terms).to.equal('No terms for now.') 32 expect(data.instance.terms).to.equal('No terms for now.')
33 expect(data.instance.creationReason).to.be.empty
33 expect(data.instance.codeOfConduct).to.be.empty 34 expect(data.instance.codeOfConduct).to.be.empty
34 expect(data.instance.moderationInformation).to.be.empty 35 expect(data.instance.moderationInformation).to.be.empty
35 expect(data.instance.administrator).to.be.empty 36 expect(data.instance.administrator).to.be.empty
@@ -90,6 +91,7 @@ function checkUpdatedConfig (data: CustomConfig) {
90 expect(data.instance.description).to.equal('my super description') 91 expect(data.instance.description).to.equal('my super description')
91 92
92 expect(data.instance.terms).to.equal('my super terms') 93 expect(data.instance.terms).to.equal('my super terms')
94 expect(data.instance.creationReason).to.equal('my super creation reason')
93 expect(data.instance.codeOfConduct).to.equal('my super coc') 95 expect(data.instance.codeOfConduct).to.equal('my super coc')
94 expect(data.instance.moderationInformation).to.equal('my super moderation information') 96 expect(data.instance.moderationInformation).to.equal('my super moderation information')
95 expect(data.instance.administrator).to.equal('Kuja') 97 expect(data.instance.administrator).to.equal('Kuja')
@@ -212,6 +214,7 @@ describe('Test config', function () {
212 terms: 'my super terms', 214 terms: 'my super terms',
213 codeOfConduct: 'my super coc', 215 codeOfConduct: 'my super coc',
214 216
217 creationReason: 'my super creation reason',
215 moderationInformation: 'my super moderation information', 218 moderationInformation: 'my super moderation information',
216 administrator: 'Kuja', 219 administrator: 'Kuja',
217 maintenanceLifetime: 'forever', 220 maintenanceLifetime: 'forever',