Fix broken spec
This commit is contained in:
parent
43fec74372
commit
50ddfaa968
@ -72,8 +72,7 @@ describe('analysis-filters-params', () => {
|
|||||||
max: 2e6
|
max: 2e6
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
no_filters: 1
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -411,9 +411,12 @@ TestClient.prototype.getDataview = function(dataviewName, params, callback) {
|
|||||||
self.keysToDelete['map_cfg|' + LayergroupToken.parse(layergroupId).token] = 0;
|
self.keysToDelete['map_cfg|' + LayergroupToken.parse(layergroupId).token] = 0;
|
||||||
self.keysToDelete['user:localhost:mapviews:global'] = 5;
|
self.keysToDelete['user:localhost:mapviews:global'] = 5;
|
||||||
|
|
||||||
var urlParams = {
|
var urlParams = {};
|
||||||
own_filter: params.hasOwnProperty('own_filter') ? params.own_filter : 1
|
if (params.hasOwnProperty('no_filters')) {
|
||||||
};
|
urlParams.no_filters = params.no_filters;
|
||||||
|
} else {
|
||||||
|
urlParams.own_filter = params.hasOwnProperty('own_filter') ? params.own_filter : 1
|
||||||
|
}
|
||||||
|
|
||||||
['bbox', 'bins', 'start', 'end', 'aggregation', 'offset', 'categories'].forEach(function(extraParam) {
|
['bbox', 'bins', 'start', 'end', 'aggregation', 'offset', 'categories'].forEach(function(extraParam) {
|
||||||
if (params.hasOwnProperty(extraParam)) {
|
if (params.hasOwnProperty(extraParam)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user