Skip to content

Commit

Permalink
FIx bug??
Browse files Browse the repository at this point in the history
  • Loading branch information
UO284262 committed May 3, 2023
1 parent c0ecdd1 commit e5a7dbe
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions restapi/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,12 @@ api.post(
}
}
);
api.get(
"/test",
(req: Request, res: Response): Response => {
return res.sendStatus(200);
}
);


export default api;
6 changes: 6 additions & 0 deletions restapi/tests/api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ afterAll(async () => {
await mongoose.connection.close();
});

describe('test conexión con api ', () => {
test('GET /', async () => {
const response = await request(app).get('/test');
expect(response.status).toBe(200);
});
});
/*
describe('/usermanager/find/username ', () => {
test('usuario que existe', async () => {
Expand Down

0 comments on commit e5a7dbe

Please sign in to comment.