feat: open-trip-api-drink (#11)
Reviewed-on: #11 Co-authored-by: Clement <c.boesmier@aptatio.com> Co-committed-by: Clement <c.boesmier@aptatio.com>
This commit is contained in:
@ -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")
|
||||
|
Reference in New Issue
Block a user