Serve TileJSONs on /{prefix}.json
This commit is contained in:
@@ -17,17 +17,17 @@ describe('Metadata', function() {
|
||||
});
|
||||
});
|
||||
|
||||
describe('/test/index.json', function() {
|
||||
describe('/test.json', function() {
|
||||
it('is json', function(done) {
|
||||
supertest(app)
|
||||
.get('/test/index.json')
|
||||
.get('/test.json')
|
||||
.expect(200)
|
||||
.expect('Content-Type', /application\/json/, done);
|
||||
});
|
||||
|
||||
it('has valid basename and tiles', function(done) {
|
||||
supertest(app)
|
||||
.get('/test/index.json')
|
||||
.get('/test.json')
|
||||
.expect(function(res) {
|
||||
res.body.basename.should.equal('test');
|
||||
res.body.tiles.length.should.be.greaterThan(0);
|
||||
|
||||
Reference in New Issue
Block a user