test: no more send for superagent.get
This commit is contained in:
@@ -180,10 +180,9 @@ describe('Users API', function () {
|
||||
});
|
||||
|
||||
describe('invite', function () {
|
||||
it('creationg fails for unknown user', async function () {
|
||||
it('creation fails for unknown user', async function () {
|
||||
const response = await superagent.get(`${serverUrl}/api/v1/users/randomuserid/invite_link`)
|
||||
.query({ access_token: owner.token })
|
||||
.send({})
|
||||
.ok(() => true);
|
||||
|
||||
expect(response.statusCode).to.equal(404);
|
||||
@@ -192,7 +191,6 @@ describe('Users API', function () {
|
||||
it('creation succeeds', async function () {
|
||||
const response = await superagent.get(`${serverUrl}/api/v1/users/${user.id}/invite_link`)
|
||||
.query({ access_token: owner.token })
|
||||
.send({})
|
||||
.ok(() => true);
|
||||
|
||||
expect(response.statusCode).to.equal(200);
|
||||
|
||||
Reference in New Issue
Block a user