From adefbb3365dbd29e5d93fffa9e9d7adcd32312ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Mart=C3=ADn?= Date: Tue, 17 Apr 2018 11:05:37 +0200 Subject: [PATCH] query with template string --- test/acceptance/mvt-regressions.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/test/acceptance/mvt-regressions.js b/test/acceptance/mvt-regressions.js index 8ff28f50..7f5b6658 100644 --- a/test/acceptance/mvt-regressions.js +++ b/test/acceptance/mvt-regressions.js @@ -73,7 +73,6 @@ describe('mvt regressions', function () { done(); }); }); - }); }); }); @@ -94,14 +93,19 @@ describe('MVT Mapnik', function () { }); it('invalid properties', function (done) { + const query = ` + select ldc, cartodb_id, _2016_6_partcntry, the_geom_webmercator, country + from countries_null_values + where country = 'Kenya' OR country = 'Sudan' LIMIT 3 + `; + const mapConfig = { version: '1.7.0', layers: [ { type: 'cartodb', options: { - sql: "select ldc, cartodb_id, _2016_6_partcntry, the_geom_webmercator, country " + - "from countries_null_values where country = 'Kenya' OR country = 'Sudan' LIMIT 3", + sql: query } } ]