260322:1648 Correct Coresspondence / Doing RFA / Correct CI
This commit is contained in:
@@ -61,7 +61,7 @@ describe('UsersController (e2e)', () => {
|
||||
whitelist: true,
|
||||
transform: true,
|
||||
forbidNonWhitelisted: true,
|
||||
}),
|
||||
})
|
||||
);
|
||||
|
||||
await app.init();
|
||||
@@ -97,9 +97,7 @@ describe('UsersController (e2e)', () => {
|
||||
|
||||
describe('/users/:id (GET)', () => {
|
||||
it('should return 404 for non-existent user', () => {
|
||||
return request(app.getHttpServer())
|
||||
.get('/users/non-existent-id')
|
||||
.expect(404);
|
||||
return request(app.getHttpServer()).get('/users/non-existent-id').expect(404);
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -127,9 +125,7 @@ describe('Protected Routes (e2e)', () => {
|
||||
});
|
||||
|
||||
it('should return 401 without token', () => {
|
||||
return request(app.getHttpServer())
|
||||
.get('/users/me')
|
||||
.expect(401);
|
||||
return request(app.getHttpServer()).get('/users/me').expect(401);
|
||||
});
|
||||
|
||||
it('should return user profile with valid token', () => {
|
||||
|
||||
Reference in New Issue
Block a user