Remove cartodb folder in unit test

This commit is contained in:
Daniel García Aubert 2019-10-07 11:29:07 +02:00
parent 73e1659378
commit 55aad4254c
26 changed files with 51 additions and 51 deletions

View File

@ -1,7 +1,7 @@
'use strict';
var assert = require('assert');
var MapnikLayerStats = require('../../../../../lib/backends/layer-stats/mapnik-layer-stats');
var MapnikLayerStats = require('../../../../lib/backends/layer-stats/mapnik-layer-stats');
var MapConfig = require('windshaft').model.MapConfig;
function getDbConnectionMock () {

View File

@ -1,7 +1,7 @@
'use strict';
var assert = require('assert');
var TorqueLayerStats = require('../../../../../lib/backends/layer-stats/torque-layer-stats');
var TorqueLayerStats = require('../../../../lib/backends/layer-stats/torque-layer-stats');
var MapConfig = require('windshaft').model.MapConfig;
describe('torque-layer-stats', function () {

View File

@ -1,6 +1,6 @@
'use strict';
var PostgresDatasource = require('../../../../lib/backends/turbo-carto-postgres-datasource');
var PostgresDatasource = require('../../../lib/backends/turbo-carto-postgres-datasource');
var PSQL = require('cartodb-psql');
var _ = require('underscore');
var assert = require('assert');

View File

@ -1,10 +1,10 @@
'use strict';
require('../../../../support/test-helper');
require('../../../support/test-helper');
var assert = require('assert');
var _ = require('underscore');
var NamedMapsCacheEntry = require('../../../../../lib/cache/model/named-maps-entry');
var NamedMapsCacheEntry = require('../../../../lib/cache/model/named-maps-entry');
describe('cache named maps entry', function() {

View File

@ -1,9 +1,9 @@
'use strict';
require('../../support/test-helper');
require('../support/test-helper');
var assert = require('assert');
var CdbRequest = require('../../../lib/models/cdb-request');
var CdbRequest = require('../../lib/models/cdb-request');
describe('req2params', function() {

View File

@ -1,10 +1,10 @@
'use strict';
require('../../support/test-helper');
require('../support/test-helper');
var assert = require('assert');
var errorMiddleware = require('../../../lib/api/middlewares/error-middleware');
var errorMiddleware = require('../../lib/api/middlewares/error-middleware');
describe('error messages clean up', function() {

View File

@ -1,9 +1,9 @@
'use strict';
require('../../support/test-helper');
require('../support/test-helper');
var assert = require('assert');
var errorMiddleware = require('../../../lib/api/middlewares/error-middleware');
var errorMiddleware = require('../../lib/api/middlewares/error-middleware');
describe('error-middleware', function() {

View File

@ -1,9 +1,9 @@
'use strict';
var assert = require('assert');
var testHelper = require('../../support/test-helper');
var testHelper = require('../support/test-helper');
var lzmaMiddleware = require('../../../lib/api/middlewares/lzma');
var lzmaMiddleware = require('../../lib/api/middlewares/lzma');
describe('lzma-middleware', function() {

View File

@ -3,7 +3,7 @@
//require('../../../support/test-helper');
var assert = require('assert');
var MapConfigAdapter = require('../../../../lib/models/mapconfig/adapter');
var MapConfigAdapter = require('../../../lib/models/mapconfig/adapter');
describe('MapConfigAdapter', function() {
var user = 'wadus';

View File

@ -3,7 +3,7 @@
//require('../../../support/test-helper');
var assert = require('assert');
var DataviewsMapConfigAdapter = require('../../../../lib/models/mapconfig/adapter/dataviews-widgets-adapter');
var DataviewsMapConfigAdapter = require('../../../lib/models/mapconfig/adapter/dataviews-widgets-adapter');
describe('dataviews-widgets-adapter', function() {

View File

@ -1,7 +1,7 @@
'use strict';
const assert = require('assert');
const coordinates = require('../../../../lib/api/middlewares/coordinates');
const coordinates = require('../../../lib/api/middlewares/coordinates');
describe('coordinates middleware', function () {
it('should return error: invalid zoom paramenter (-1)', function (done) {

View File

@ -1,10 +1,10 @@
'use strict';
require('../../../../support/test-helper');
require('../../../support/test-helper');
var util = require('util');
var assert = require('../../../../support/assert');
var BboxFilter = require('../../../../../lib/models/filter/bbox');
var assert = require('../../../support/assert');
var BboxFilter = require('../../../../lib/models/filter/bbox');
var MAX_EXTENT_MERCATOR_REF = [
-BboxFilter.LONGITUDE_MAX_VALUE,

View File

@ -1,9 +1,9 @@
'use strict';
require('../../../support/test-helper');
require('../../support/test-helper');
var assert = require('../../../support/assert');
var ResourceLocator = require('../../../../lib/models/resource-locator');
var assert = require('../../support/assert');
var ResourceLocator = require('../../../lib/models/resource-locator');
describe('ResourceLocator', function() {
var USERNAME = 'username';

View File

@ -1,9 +1,9 @@
'use strict';
require('../../support/test-helper');
require('../support/test-helper');
var assert = require('assert');
var OverviewsQueryRewriter = require('../../../lib/utils/overviews-query-rewriter');
var OverviewsQueryRewriter = require('../../lib/utils/overviews-query-rewriter');
var overviewsQueryRewriter = new OverviewsQueryRewriter({
zoom_level: 'ZoomLevel()'
});

View File

@ -1,9 +1,9 @@
'use strict';
require('../../../support/test-helper');
require('../../support/test-helper');
var assert = require('assert');
var ProfilerProxy = require('../../../../lib/stats/profiler-proxy');
var ProfilerProxy = require('../../../lib/stats/profiler-proxy');
describe('profiler', function() {

View File

@ -1,10 +1,10 @@
'use strict';
require('../../../support/test-helper');
require('../../support/test-helper');
var assert = require('assert');
var StatsClient = require('../../../../lib/stats/client');
var StatsClient = require('../../../lib/stats/client');
describe('stats client', function() {
var statsInstance;

View File

@ -1,10 +1,10 @@
'use strict';
require('../../../support/test-helper');
require('../../support/test-helper');
var assert = require('assert');
var cartodbServer = require('../../../../lib/server');
var serverOptions = require('../../../../lib/server-options');
var cartodbServer = require('../../../lib/server');
var serverOptions = require('../../../lib/server-options');
describe('windshaft', function() {

View File

@ -5,14 +5,14 @@ var _ = require('underscore');
var RedisPool = require('redis-mpool');
var cartodbRedis = require('cartodb-redis');
var PgConnection = require('../../../lib/backends/pg-connection');
var AuthBackend = require('../../../lib/backends/auth');
var TemplateMaps = require('../../../lib/backends/template-maps');
var PgConnection = require('../../lib/backends/pg-connection');
var AuthBackend = require('../../lib/backends/auth');
var TemplateMaps = require('../../lib/backends/template-maps');
const cleanUpQueryParamsMiddleware = require('../../../lib/api/middlewares/clean-up-query-params');
const authorizeMiddleware = require('../../../lib/api/middlewares/authorize');
const dbConnSetupMiddleware = require('../../../lib/api/middlewares/db-conn-setup');
const credentialsMiddleware = require('../../../lib/api/middlewares/credentials');
const cleanUpQueryParamsMiddleware = require('../../lib/api/middlewares/clean-up-query-params');
const authorizeMiddleware = require('../../lib/api/middlewares/authorize');
const dbConnSetupMiddleware = require('../../lib/api/middlewares/db-conn-setup');
const credentialsMiddleware = require('../../lib/api/middlewares/credentials');
var windshaft = require('windshaft');

View File

@ -1,7 +1,7 @@
'use strict';
const assert = require('assert');
const NamedMapProviderReporter = require('../../../../../lib/stats/reporter/named-map-provider');
const NamedMapProviderReporter = require('../../../../lib/stats/reporter/named-map-provider');
describe('named-map-provider-reporter', function () {
it('should report metrics every 100 ms', function (done) {

View File

@ -1,7 +1,7 @@
'use strict';
var assert = require('assert');
var SubstitutionTokens = require('../../../lib/utils/substitution-tokens');
var SubstitutionTokens = require('../../lib/utils/substitution-tokens');
describe('SubstitutionTokens', function() {

View File

@ -1,9 +1,9 @@
'use strict';
require('../../support/test-helper');
require('../support/test-helper');
var assert = require('assert');
var TableNameParser = require('../../../lib/utils/table-name-parser');
var TableNameParser = require('../../lib/utils/table-name-parser');
describe('TableNameParser', function() {

View File

@ -1,11 +1,11 @@
'use strict';
require('../../support/test-helper');
require('../support/test-helper');
var assert = require('assert');
var RedisPool = require('redis-mpool');
var TemplateMaps = require('../../../lib/backends/template-maps');
var TemplateMaps = require('../../lib/backends/template-maps');
describe('template_maps_auth', function() {

View File

@ -1,10 +1,10 @@
'use strict';
require('../../support/test-helper');
require('../support/test-helper');
var assert = require('assert');
var RedisPool = require('redis-mpool');
var TemplateMaps = require('../../../lib/backends/template-maps');
var TemplateMaps = require('../../lib/backends/template-maps');
var _ = require('underscore');
describe('template_maps', function() {

View File

@ -1,10 +1,10 @@
'use strict';
var testHelper = require('../../support/test-helper');
var testHelper = require('../support/test-helper');
var assert = require('assert');
var RedisPool = require('redis-mpool');
var TemplateMaps = require('../../../lib/backends/template-maps');
var TemplateMaps = require('../../lib/backends/template-maps');
var step = require('step');
var _ = require('underscore');

View File

@ -1,7 +1,7 @@
'use strict';
var assert = require('assert');
var dateWrapper = require('../../../../lib/utils/date-wrapper');
var dateWrapper = require('../../../lib/utils/date-wrapper');
describe('date-wrapper', function() {

View File

@ -1,10 +1,10 @@
'use strict';
require('../../support/test-helper');
require('../support/test-helper');
var assert = require('assert');
var RedisPool = require('redis-mpool');
var TemplateMaps = require('../../../lib/backends/template-maps');
var TemplateMaps = require('../../lib/backends/template-maps');
var _ = require('underscore');
describe('template_maps', function() {