HousewareHQ / backend-engineering-octernship

24 stars 13 forks source link

What logic to add for unit testing API endpoints ? #10

Open thepranays opened 1 year ago

thepranays commented 1 year ago

'Note: Do add unit tests(for success & failure) for each API endpoint.' as mentioned in README.md file. I am trying to add unit tests but i am not understanding what logic should i add for testing endpoints. For eg /login -> how can i unit test this endpoint?

Please someone help.