I use supertest to send query string parameters, how can I do this?
I tried
var imsServer = supertest.agent("https://example.com"); imsServer.get("/") .send({ username: username, password: password, client_id: 'Test1', scope: 'openid,TestID', response_type: 'token', redirect_uri: 'https://example.com/test.jsp' }) .expect(200) .end(function (err, res) {
but did not send username , password , client_id as a query string to the endpoint. Is there a way to send query string parameters using supertest?
supertest
Jk
source share