Add healthcheck endpoint (close #140)

This commit is contained in:
Petr Sloup
2017-05-10 08:57:51 +02:00
parent d30027e992
commit 5d93b1d4f9
3 changed files with 24 additions and 0 deletions

View File

@@ -38,6 +38,14 @@ var testTileJSON = function(url) {
};
describe('Metadata', function() {
describe('/health', function() {
it('returns 200', function(done) {
supertest(app)
.get('/health')
.expect(200, done);
});
});
testTileJSONArray('/index.json');
testTileJSONArray('/rendered.json');
testTileJSONArray('/data.json');