Skip to content

Instantly share code, notes, and snippets.

@gregberge
Last active December 26, 2015 18:19
Show Gist options
  • Save gregberge/7194047 to your computer and use it in GitHub Desktop.
Save gregberge/7194047 to your computer and use it in GitHub Desktop.
API testing
var request = require('supertest');
describe('API testing', function () {
it('should return 200', function (done) {
request('http://mywebsite.com')
.get('/users')
.expect(200)
.end(done);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment