test: no more send for superagent.get

This commit is contained in:
Girish Ramakrishnan
2025-02-06 15:13:07 +01:00
parent 471c68474a
commit 203ab05d12
+1 -3
View File
@@ -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);