Last active
December 20, 2015 16:58
-
-
Save darrenderidder/6164944 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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