From cf0c8ee588e37809d85ec1deec1e4fdfa0f122a5 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 14 Oct 2021 11:35:43 +0200 Subject: Fix admin edition disabling feature --- server/tests/api/server/auto-follows.ts | 4 ++++ server/tests/api/server/config.ts | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'server/tests/api') diff --git a/server/tests/api/server/auto-follows.ts b/server/tests/api/server/auto-follows.ts index ca6475bd5..90a668edb 100644 --- a/server/tests/api/server/auto-follows.ts +++ b/server/tests/api/server/auto-follows.ts @@ -186,6 +186,10 @@ describe('Test auto follows', function () { await checkFollow(servers[0], servers[1], false) await checkFollow(servers[0], servers[2], true) }) + + after(async function () { + await instanceIndexServer.terminate() + }) }) after(async function () { diff --git a/server/tests/api/server/config.ts b/server/tests/api/server/config.ts index 8363318f6..1d996d454 100644 --- a/server/tests/api/server/config.ts +++ b/server/tests/api/server/config.ts @@ -379,14 +379,14 @@ describe('Test static config', function () { before(async function () { this.timeout(30000) - server = await createSingleServer(1, { webadmin: { configuration: { edit: { allowed: false } } } }) + server = await createSingleServer(1, { webadmin: { configuration: { edition: { allowed: false } } } }) await setAccessTokensToServers([ server ]) }) it('Should tell the client that edits are not allowed', async function () { const data = await server.config.getConfig() - expect(data.allowEdits).to.be.false + expect(data.webadmin.configuration.edition.allowed).to.be.false }) it('Should error when client tries to update', async function () { -- cgit v1.2.3