How to send query string parameters using supertest?
<p>I'm using supertest to send get query string parameters, how can I do that?</p>

<p>I tried</p>

<pre><code>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) {
    // HTTP status should be 200
    expect(res.status).to.be.equal(200);
    body = res.body;
    userId = body.userId;
    accessToken = body.access_token;
    done();
  });
</code></pre>

<p>but that didn't send the parameters <code>username</code>, <code>password</code>, <code>client_id</code> as query string to the endpoint. Is there a way to send query string parameters using supertest?</p>