sourcefuse / loopback4-starter

Loopback 4 starter application. Multi-tenant architecture supported. Authentication, Authorization, Soft deletes, environment vars, Audit logs, included.
MIT License
158 stars 59 forks source link

Question about testing / access-token passing #23

Closed sherif2011 closed 5 years ago

sherif2011 commented 5 years ago

Hello,

I don't have experience with testing, but I am seeing how loopback4-starter has a good example for automated testing using mocha. I would like to start testing my end points but am wondering how to pass tokens? I am seeing some examples here https://www.npmjs.com/package/@loopback/testlab#createrestappclient but nothing mentions passing Authorization: in requests header. Do you mind provide me with any references, links or thoughts to get myself started?

Thanks, Sherif

sherif2011 commented 5 years ago

Never mind. I think i better off read a bit in loopback testlab and supertest. Sorry for send it too soon.

sherif2011 commented 5 years ago

Never mind. I think i better off read a bit in loopback testlab and supertest. Sorry for send it too soon.