Add tests

This commit is contained in:
Daniel García Aubert
2019-02-27 12:43:26 +01:00
parent b87298bad9
commit 561be2e5e8
2 changed files with 105 additions and 17 deletions
+3 -3
View File
@@ -620,7 +620,7 @@ TestClient.prototype.getFeatureAttributes = function(featureId, layerId, params,
);
};
TestClient.prototype.getClusterFeatures = function(clusterId, layerId, params, callback) {
TestClient.prototype.getClusterFeatures = function (zoom, clusterId, layerId, params, callback) {
var self = this;
if (!callback) {
@@ -685,12 +685,12 @@ TestClient.prototype.getClusterFeatures = function(clusterId, layerId, params, c
}
);
},
function getCLusterFeatures(err, layergroupId) {
function getCLusterFeatures (err, layergroupId) {
assert.ifError(err);
var next = this;
url = '/api/v1/map/' + layergroupId + '/' + layerId + '/cluster/' + clusterId;
url = '/api/v1/map/' + layergroupId + '/' + layerId + '/' + zoom + '/cluster/' + clusterId;
assert.response(self.server,
{