From 50ddfaa968b37bd0b5ff4d2020a9ba0a62dd8066 Mon Sep 17 00:00:00 2001 From: Ivan Malagon Date: Tue, 12 Dec 2017 15:56:16 +0100 Subject: [PATCH] Fix broken spec --- test/acceptance/analysis/analyses-filters-params.js | 3 +-- test/support/test-client.js | 9 ++++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/test/acceptance/analysis/analyses-filters-params.js b/test/acceptance/analysis/analyses-filters-params.js index 04b12d4e..52861a3a 100644 --- a/test/acceptance/analysis/analyses-filters-params.js +++ b/test/acceptance/analysis/analyses-filters-params.js @@ -72,8 +72,7 @@ describe('analysis-filters-params', () => { max: 2e6 } } - }, - no_filters: 1 + } }; diff --git a/test/support/test-client.js b/test/support/test-client.js index 3188d0fc..c56946cd 100644 --- a/test/support/test-client.js +++ b/test/support/test-client.js @@ -411,9 +411,12 @@ TestClient.prototype.getDataview = function(dataviewName, params, callback) { self.keysToDelete['map_cfg|' + LayergroupToken.parse(layergroupId).token] = 0; self.keysToDelete['user:localhost:mapviews:global'] = 5; - var urlParams = { - own_filter: params.hasOwnProperty('own_filter') ? params.own_filter : 1 - }; + var urlParams = {}; + 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) { if (params.hasOwnProperty(extraParam)) {