fac-13 / stackMatch

App to connect Founders & Coders members with each other 👌
https://stackmatch-fac-dev.herokuapp.com/
4 stars 2 forks source link

Tests for protected endpoints #68

Open helenzhou6 opened 6 years ago

helenzhou6 commented 6 years ago

Relate #64

As discussed, could have a stackMatch gitHub profile linked to foundersandcoders, and use that for the OAuth Application as well as being able to use it for testing (put login detail in .env file and then use .send to get to authorised routes).

Resources to check out: https://medium.com/@juha.a.hytonen/testing-authenticated-requests-with-supertest-325ccf47c2bb https://medium.com/@bill_broughton/testing-with-authenticated-routes-in-express-6fa9c4c335ca