From 5989ab344d450155f71885e8e32d6a6b59b156ac Mon Sep 17 00:00:00 2001 From: Javier Goizueta Date: Wed, 18 May 2016 18:02:08 +0200 Subject: [PATCH] Add test to detect problem #457 --- test/acceptance/dataviews/overviews.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/test/acceptance/dataviews/overviews.js b/test/acceptance/dataviews/overviews.js index 9acda126..0ab7e8bd 100644 --- a/test/acceptance/dataviews/overviews.js +++ b/test/acceptance/dataviews/overviews.js @@ -58,6 +58,21 @@ describe('dataviews using tables without overviews', function() { }); }); + it("should admit a bbox", function(done) { + var params = { + bbox: "-170,-80,170,80" + }; + var testClient = new TestClient(nonOverviewsMapConfig); + testClient.getDataview('country_places_count', params, function(err, formula_result) { + if (err) { + return done(err); + } + assert.deepEqual(formula_result, { operation: 'count', result: 7253, nulls: 0, type: 'formula' }); + + testClient.drain(done); + }); + }); + describe('filters', function() { describe('category', function () {