Skip to content

Instantly share code, notes, and snippets.

@darrenderidder
Last active December 20, 2015 16:58
Show Gist options
  • Save darrenderidder/6164944 to your computer and use it in GitHub Desktop.
Save darrenderidder/6164944 to your computer and use it in GitHub Desktop.
describe('app', function () {
before (function (done) {
app.listen(port, function (err, result) {
if (err) {
done(err);
} else {
done();
}
});
after(function (done) {
app.close();
});
it('should exist', function (done) {
should.exist(app);
done();
});
it('should be listening at localhost:3333', function (done) {
var headers = defaultGetOptions('/');
http.get(headers, function (res) {
res.statusCode.should.eql(404);
done();
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment