feat: open-trip-api-drink (#11)
All checks were successful
Build Docker Image Front / run (push) Successful in 28s
Build Docker Image Back / run (push) Successful in 23s

Reviewed-on: #11
Co-authored-by: Clement <c.boesmier@aptatio.com>
Co-committed-by: Clement <c.boesmier@aptatio.com>
This commit is contained in:
2024-05-19 11:38:38 +02:00
committed by Clement
parent 1bbc7a2aa3
commit e0c3580269
24 changed files with 1951 additions and 27 deletions

View File

@ -10,17 +10,7 @@ let serveur : Server<typeof IncomingMessage, typeof ServerResponse>
describe("Test the welcome path", () => {
beforeEach(() => {
serveur = app.listen(port, () =>{
console.log(`serveur running in ${port}`)
})
})
afterEach((done) => {
serveur.close(done)
})
test("It should response the GET method", done => {
test("It should response the 200 code for GET method", done => {
request(app)
.get("/welcome")
.then(response => {
@ -29,7 +19,7 @@ describe("Test the welcome path", () => {
});
});
test("It should response the GET method", done => {
test("It should response the GET method with content", done => {
const out = {hello:"world"};
request(app)
.get("/welcome")