tileserver-gl/test/metadata.js
2016-03-09 11:26:02 +01:00

20 lines
504 B
JavaScript

describe('Metadata', function() {
describe('/index.json', function() {
it('is json', function(done) {
supertest(app)
.get('/index.json')
.expect(200)
.expect('Content-Type', /application\/json/, done);
});
it('is non-empty array', function(done) {
supertest(app)
.get('/index.json')
.expect(function(res) {
res.body.should.be.Array();
res.body.length.should.be.greaterThan(0);
}).end(done);
});
});
});