Do not add basename to tilejson and remove sensitive properties (see #69)
This commit is contained in:
@@ -18,7 +18,7 @@ var testTileJSONArray = function(url) {
|
||||
});
|
||||
};
|
||||
|
||||
var testTileJSON = function(url, basename) {
|
||||
var testTileJSON = function(url) {
|
||||
describe(url + ' is TileJSON', function() {
|
||||
it('is json', function(done) {
|
||||
supertest(app)
|
||||
@@ -27,11 +27,10 @@ var testTileJSON = function(url, basename) {
|
||||
.expect('Content-Type', /application\/json/, done);
|
||||
});
|
||||
|
||||
it('has valid basename and tiles', function(done) {
|
||||
it('has valid tiles', function(done) {
|
||||
supertest(app)
|
||||
.get(url)
|
||||
.expect(function(res) {
|
||||
res.body.basename.should.equal(basename);
|
||||
res.body.tiles.length.should.be.greaterThan(0);
|
||||
}).end(done);
|
||||
});
|
||||
@@ -64,6 +63,6 @@ describe('Metadata', function() {
|
||||
});
|
||||
});
|
||||
|
||||
testTileJSON('/styles/test-style/rendered.json', 'test-style');
|
||||
testTileJSON('/data/openmaptiles.json', 'openmaptiles');
|
||||
testTileJSON('/styles/test-style/rendered.json');
|
||||
testTileJSON('/data/openmaptiles.json');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user