justinmauldin7 / Play_BE

0 stars 1 forks source link

Endpoint & Endpoint Tests #24

Closed justinmauldin7 closed 5 years ago

justinmauldin7 commented 5 years ago

This PR pulls in the endpoints that Dan created in the index.js file & the test for each endpoint along with successful seed file that is working.

-Index.js file was updated to export database & app. -Test file routes.spec.js has before block to truncate, migrate & seed the database for each test.


All tests are passing except the delete favorite test. Getting 200 status return instead of 204. It is skipped for the moment so we can move on.


Endpoints are: -homepage -GET all playlists -GET all favorites -GET a single favorite by ID -POST a new favorite -PUT a single favorite by ID -DELETE a single favorite by ID

closes #13 closes #14 closes #15 closes #16 closes #17 closes #22

danbriechle commented 5 years ago

Worked on in a pairing session.