request('http://localhost:3000') .get('/api/employees') .expect(200) .expect('Content-Type', 'application/json') .end(function(err, res) { if (err) throw err; });