+ it('Should have a correct config on a server with registration enabled and a users limit', function (done) {
+ series([
+ function (next) {
+ usersUtils.registerUser(server.url, 'user1', 'super password', next)
+ },
+
+ function (next) {
+ usersUtils.registerUser(server.url, 'user2', 'super password', next)
+ },
+
+ function (next) {
+ usersUtils.registerUser(server.url, 'user3', 'super password', next)
+ }
+
+ ], function (err) {
+ if (err) throw err
+
+ configUtils.getConfig(server.url, function (err, res) {
+ if (err) throw err
+
+ const data = res.body
+
+ expect(data.signup.allowed).to.be.false
+
+ done()
+ })
+ })
+ })
+