aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/config.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/config.js')
-rw-r--r--server/tests/api/config.js12
1 files changed, 4 insertions, 8 deletions
diff --git a/server/tests/api/config.js b/server/tests/api/config.js
index f2c00f85a..052b3f036 100644
--- a/server/tests/api/config.js
+++ b/server/tests/api/config.js
@@ -44,19 +44,15 @@ describe('Test config', function () {
44 it('Should have a correct config on a server with registration enabled and a users limit', function (done) { 44 it('Should have a correct config on a server with registration enabled and a users limit', function (done) {
45 series([ 45 series([
46 function (next) { 46 function (next) {
47 usersUtils.registerUser(server.url, 'user1', 'super password', done) 47 usersUtils.registerUser(server.url, 'user1', 'super password', next)
48 }, 48 },
49 49
50 function (next) { 50 function (next) {
51 usersUtils.registerUser(server.url, 'user2', 'super password', done) 51 usersUtils.registerUser(server.url, 'user2', 'super password', next)
52 }, 52 },
53 53
54 function (next) { 54 function (next) {
55 usersUtils.registerUser(server.url, 'user3', 'super password', done) 55 usersUtils.registerUser(server.url, 'user3', 'super password', next)
56 },
57
58 function (next) {
59 usersUtils.registerUser(server.url, 'user4', 'super password', done)
60 } 56 }
61 57
62 ], function (err) { 58 ], function (err) {
@@ -67,7 +63,7 @@ describe('Test config', function () {
67 63
68 const data = res.body 64 const data = res.body
69 65
70 expect(data.signup.allowed).to.be.truthy 66 expect(data.signup.allowed).to.be.false
71 67
72 done() 68 done()
73 }) 69 })