bibleapi / bibleapi-rest

Node.js based Bible API RESTful web service
http://www.bibleapi.ws
MIT License
50 stars 12 forks source link

Investigate why certain requests result in an error or incorrect response #5

Open rkazakov opened 8 years ago

rkazakov commented 8 years ago

Investigate why certain requests result in an error or incorrect response.

Request: http://localhost:4000/api/v1/Gen1-2 Response: message: "Bible passage is not found."

Request: http://localhost:4000/api/v1/Gen1-3 Response: Chapters 1 and 3 are missing!

Request: http://localhost:4000/api/v1/Gen1-4 Response: Chapters 1 and 4 are missing!

Please, develop tests to catch this kind of problems.

rkazakov commented 8 years ago

The bug that caused requests to fail was fixed in 98ea0262e4e5deb17ed2f694aed2b849a54b3894. @romaduck Please add unit tests.