"npm supertest

JavaScript
describe('GET /user', function() {  it('responds with json', function(done) {    request(app)      .get('/user')      .set('Accept', 'application/json')      .expect('Content-Type', /json/)      .expect(200, done);  });});
Source

Also in JavaScript: