From 8ae03c37181822617418d1fc372982b245ac0a9a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 3 Sep 2019 09:49:04 +0200 Subject: Add creation reason --- server/tests/api/check-params/config.ts | 1 + server/tests/api/server/config.ts | 3 +++ 2 files changed, 4 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 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 () { terms: 'my super terms', codeOfConduct: 'my super coc', + creationReason: 'my super reason', moderationInformation: 'my super moderation information', administrator: 'Kuja', 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) { expect(data.instance.description).to.equal('Welcome to this PeerTube instance!') expect(data.instance.terms).to.equal('No terms for now.') + expect(data.instance.creationReason).to.be.empty expect(data.instance.codeOfConduct).to.be.empty expect(data.instance.moderationInformation).to.be.empty expect(data.instance.administrator).to.be.empty @@ -90,6 +91,7 @@ function checkUpdatedConfig (data: CustomConfig) { expect(data.instance.description).to.equal('my super description') expect(data.instance.terms).to.equal('my super terms') + expect(data.instance.creationReason).to.equal('my super creation reason') expect(data.instance.codeOfConduct).to.equal('my super coc') expect(data.instance.moderationInformation).to.equal('my super moderation information') expect(data.instance.administrator).to.equal('Kuja') @@ -212,6 +214,7 @@ describe('Test config', function () { terms: 'my super terms', codeOfConduct: 'my super coc', + creationReason: 'my super creation reason', moderationInformation: 'my super moderation information', administrator: 'Kuja', maintenanceLifetime: 'forever', -- cgit v1.2.3