Created
April 14, 2014 01:49
-
-
Save hammett/10610339 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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