Skip to content

Instantly share code, notes, and snippets.

@hammett
Created April 14, 2014 01:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hammett/10610339 to your computer and use it in GitHub Desktop.
Save hammett/10610339 to your computer and use it in GitHub Desktop.
var app = require('../app');
var request = require('supertest');
describe('app', function() {
before(function(done) {
var server = app.listen(1900, done);
});
it('404 works', function() {
request(app)
.get('/aaaa')
.expect(404);
});
it('known path also works', function() {
request(app)
.get('/')
.expect(200);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment