Skip to content

Instantly share code, notes, and snippets.

@simianhacker
Created December 2, 2013 07:41
Show Gist options
  • Save simianhacker/7746318 to your computer and use it in GitHub Desktop.
Save simianhacker/7746318 to your computer and use it in GitHub Desktop.
var request = require('request');
var expect = require('chai').expect;
describe('GET /api/users', function () {
it('should return a 200 statusCode', function (done) {
request('http://localhost:5555/api/users', function (err, resp, body) {
expect(resp.statusCode).to.equal(200);
done();
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment