fix user create response

This commit is contained in:
Girish Ramakrishnan
2016-04-06 10:20:32 -07:00
parent 4c964bcaf8
commit 275d8c2121
4 changed files with 6 additions and 6 deletions

View File

@@ -260,7 +260,7 @@ describe('User API', function () {
expect(error).to.not.be.ok();
expect(result.statusCode).to.equal(201);
user_1 = result.body.userInfo;
user_1 = result.body;
checkMails(2, function () {
// HACK to get a token for second user (passwords are generated and the user should have gotten a password setup link...)
@@ -380,7 +380,7 @@ describe('User API', function () {
.end(function (error, result) {
expect(result.statusCode).to.equal(201);
user_2 = result.body.userInfo;
user_2 = result.body;
superagent.post(SERVER_URL + '/api/v1/users')
.query({ access_token: token })
@@ -388,7 +388,7 @@ describe('User API', function () {
.end(function (error, result) {
expect(result.statusCode).to.equal(201);
user_3 = result.body.userInfo;
user_3 = result.body;
// one mail for first user creation, two mails for second user creation (see 'invite' flag)
checkMails(3, function () {