+
+ it('Should succeed if the user limit is not reached', async function () {
+ this.timeout(60000)
+
+ const { total } = await server.users.list()
+
+ await server.config.enableSignup(false, total + 1)
+ await server.registrations.register({ username: 'user43', expectedStatus: HttpStatusCode.NO_CONTENT_204 })
+
+ await server.config.enableSignup(true, total + 2)
+ await server.registrations.requestRegistration({
+ username: 'user44',
+ registrationReason: 'reason',
+ expectedStatus: HttpStatusCode.OK_200
+ })
+ })