chore: Use patch instead of get for update user tests
This commit is contained in:
@@ -80,7 +80,7 @@ describe('PATCH /api/v1/admin/users/:userId', () => {
|
|||||||
|
|
||||||
it('should return bad request response for invalid UUID', async () => {
|
it('should return bad request response for invalid UUID', async () => {
|
||||||
await request(app)
|
await request(app)
|
||||||
.get('/api/v1/admin/users/invalidUserUUID')
|
.patch('/api/v1/admin/users/invalidUserUUID')
|
||||||
.set('Authorization', token)
|
.set('Authorization', token)
|
||||||
.expect(400);
|
.expect(400);
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user