Automatically lint fixes

This commit is contained in:
Daniel García Aubert 2019-11-13 20:07:41 +01:00
parent 97f4adbc1a
commit 7b13c12ab4
5 changed files with 25 additions and 24 deletions

View File

@ -85,9 +85,9 @@ module.exports = class ApiRouter {
const metadataBackend = cartodbRedis({ pool: redisPool }); const metadataBackend = cartodbRedis({ pool: redisPool });
const pgConnection = new PgConnection(metadataBackend); const pgConnection = new PgConnection(metadataBackend);
const windshaftLogger = environmentOptions.log_windshaft && global.log4js ? const windshaftLogger = environmentOptions.log_windshaft && global.log4js
global.log4js.getLogger('[windshaft]') : ? global.log4js.getLogger('[windshaft]')
null; : null;
const mapStore = new windshaft.storage.MapStore({ const mapStore = new windshaft.storage.MapStore({
pool: redisPool, pool: redisPool,
expire_time: serverOptions.grainstore.default_layergroup_ttl, expire_time: serverOptions.grainstore.default_layergroup_ttl,

View File

@ -672,7 +672,8 @@ describe('dataviews using tables with overviews', function () {
return { return {
version: '1.8.0', version: '1.8.0',
analyses: [ analyses: [
{ id: 'data-source', {
id: 'data-source',
type: 'source', type: 'source',
params: { params: {
query: 'select * from test_table_overviews' query: 'select * from test_table_overviews'
@ -702,8 +703,8 @@ describe('dataviews using tables with overviews', function () {
it('should fail if missing column', function (done) { it('should fail if missing column', function (done) {
var options = { var options = {
aggregation: "sum", aggregation: 'sum',
aggregationColumn: "value" aggregationColumn: 'value'
}; };
var missingColumnMapConfig = createMapConfig(options); var missingColumnMapConfig = createMapConfig(options);
@ -727,8 +728,8 @@ describe('dataviews using tables with overviews', function () {
it('should fail if no aggregation operation', function (done) { it('should fail if no aggregation operation', function (done) {
var options = { var options = {
column: "value", column: 'value',
aggregationColumn: "value" aggregationColumn: 'value'
}; };
var missingOperationMapConfig = createMapConfig(options); var missingOperationMapConfig = createMapConfig(options);
@ -752,9 +753,9 @@ describe('dataviews using tables with overviews', function () {
it('should fail if fake operation', function (done) { it('should fail if fake operation', function (done) {
var options = { var options = {
column: "value", column: 'value',
aggregation: "wadus", aggregation: 'wadus',
aggregationColumn: "value" aggregationColumn: 'value'
}; };
var wrongOperationMapConfig = createMapConfig(options); var wrongOperationMapConfig = createMapConfig(options);
@ -778,9 +779,9 @@ describe('dataviews using tables with overviews', function () {
it('should fail if invalid operation for overview', function (done) { it('should fail if invalid operation for overview', function (done) {
var options = { var options = {
column: "value", column: 'value',
aggregation: "avg", aggregation: 'avg',
aggregationColumn: "value" aggregationColumn: 'value'
}; };
var wrongOperationMapConfig = createMapConfig(options); var wrongOperationMapConfig = createMapConfig(options);
@ -804,8 +805,8 @@ describe('dataviews using tables with overviews', function () {
it('should fail if no aggregation column when needed', function (done) { it('should fail if no aggregation column when needed', function (done) {
var options = { var options = {
column: "value", column: 'value',
aggregation: "sum" aggregation: 'sum'
}; };
var missingOptionMapConfig = createMapConfig(options); var missingOptionMapConfig = createMapConfig(options);