Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.