Pensano-dev / aura-mobile-app

5 stars 0 forks source link

🧪 test: BE - getFilteredCafe controller function unit tests #78

Open pablisch opened 4 months ago

pablisch commented 4 months ago

75 should be completed BEFORE this ticket is done. By all means start this ticket but the results of tests will change as a result of ticket #75.

Not much to say here. Cover a range of test cases for valid results and bad requests. The use of parameterised testing is strongly recommended.

AC: Tests include:

This is not an exhaustive list. Please add more.

NOTE: All invalid requests should be gracefully handled without crashing the server and return a helpful message. Please let the team know of any issue you uncover. It is not at all the job of this ticket to fix those issues but to reveal them. This is why we test.

pablisch commented 3 months ago

You may have noticed that the pre-requisite ticket, #75 is on hold because of possible/probable changes resulting from the use of the Google Places API. If you want to complete this ticket anyway, it may be redundant but will be full of practice and learning. Entirely up to you.