feat: open-trip-api-drink #11

Merged
Clement merged 34 commits from feat/open-trip-api into master 2024-05-19 09:38:39 +00:00
Showing only changes of commit 04ca99afdb - Show all commits

View File

@ -74,7 +74,25 @@ describe("Test the otm city path", () => {
}); });
}); });
//TODO faire les test pour les cas d'erreur test("It should response the 200 code for GET method (default radius)", done => {
request(app)
.get("/otm/radius")
.query({'lon':'-1.4344594', 'lat' : '46.6686478'})
.then(response => {
expect(response.statusCode).toBe(200);
done();
});
});
test("It should response the 400 code for GET method (missing lon and lat)", done => {
request(app)
.get("/otm/radius")
.then(response => {
expect(response.statusCode).toBe(400);
done();
});
});
test("Get bar in radius from API", done => { test("Get bar in radius from API", done => {
const out = { const out = {