Skip to content

Commit

Permalink
fix(test): fetchuser, vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
krishnan05 committed Apr 2, 2024
1 parent 95ca354 commit 6a9188c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions __tests__/controllers/userAuthControllers/fetchUser.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ describe('GET /api/v1/auth/users/:user_id', ()=>{
})
.set('Accept', 'application/json')

// expect(res.statusCode).toBe(201);
// expect(res.body.type).toBe('success');
// expect(res.body.data.token).not.toBeNull();
// expect(res.body.data.userId).not.toBeNull();
expect(res.statusCode).toBe(400);
// token = res.body.data.token;
// user_id = res.body.data.userId;
expect(res.statusCode).toBe(201);
expect(res.body.type).toBe('success');
expect(res.body.data.token).not.toBeNull();
expect(res.body.data.userId).not.toBeNull();
//expect(res.statusCode).toBe(400);
token = res.body.data.token;
user_id = res.body.data.userId;
})

// test('Fetch User', async()=>{
Expand Down

0 comments on commit 6a9188c

Please sign in to comment.