Merge pull request #17182 from overleaf/msm-add-checks-invite-tests

[web] Add extra checks testing invite creation

GitOrigin-RevId: ae3d28c94b31ac07a81e006c4c3685c4400e0662
This commit is contained in:
Miguel Serrano 2024-02-19 12:04:34 +01:00 committed by Copybot
parent 0f05623e16
commit 079a86ec53

View file

@ -23,6 +23,8 @@ const createInvite = (sendingUser, projectId, email, callback) => {
return callback(err)
}
expect(response.statusCode).to.equal(200)
expect(body.error).to.not.exist
expect(body.invite).to.exist
callback(null, body.invite)
}
)