Wrote a test and implemented functionality for a user getting their listings. route is GET /api/listing, where it decodes the jwt token for the users ID. As authentication is not implemented, currently just hard codes a user ID of one - will need another pr later.
Closes #203
How to Test
docker-compose down -vdocker-compose up --build -d review database datalayerdocker exec -it martletplace_review bashnpm test
or uncomment ports in docker-compose and npm test
Checklist
[x] The code includes tests if relevant
[x] I have actually self-reviewed my changes and done QA
Description
Wrote a test and implemented functionality for a user getting their listings. route is GET /api/listing, where it decodes the jwt token for the users ID. As authentication is not implemented, currently just hard codes a user ID of one - will need another pr later.
Closes #203
How to Test
docker-compose down -v
docker-compose up --build -d review database datalayer
docker exec -it martletplace_review bash
npm test
or uncomment ports in docker-compose and npm test
Checklist