Skip to content

Commit 9cff912

Browse files
committed
fix tests
1 parent 97de61e commit 9cff912

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/presentation/http/routes/posts.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ describe('post routes test', () => {
9191
const res = await request(app)
9292
.get(`/users/${wrongUserId}/posts`)
9393
.set('Authorization', `Bearer ${testToken}`);
94-
expect(res.statusCode).to.to.eql(200);
95-
expect(res.body.length).to.to.eql(postData.length);
94+
expect(res.statusCode).to.to.eql(403);
9695
});
9796
it('should return 401 when no token send', () => request(app)
9897
.get(`/users/${testID}/posts`)

0 commit comments

Comments
 (0)