From b379759f55a35837b803a3b988674972db2903d1 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 19 Jan 2023 09:28:29 +0100 Subject: Add signup approval API tests --- server/tests/external-plugins/akismet.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/tests/external-plugins') diff --git a/server/tests/external-plugins/akismet.ts b/server/tests/external-plugins/akismet.ts index 974bf0011..e964bf0c2 100644 --- a/server/tests/external-plugins/akismet.ts +++ b/server/tests/external-plugins/akismet.ts @@ -138,14 +138,14 @@ describe('Official plugin Akismet', function () { }) it('Should allow signup', async function () { - await servers[0].users.register({ + await servers[0].registrations.register({ username: 'user1', displayName: 'user 1' }) }) it('Should detect a signup as SPAM', async function () { - await servers[0].users.register({ + await servers[0].registrations.register({ username: 'user2', displayName: 'user 2', email: 'akismet-guaranteed-spam@example.com', -- cgit v1.2.3