Use strict mode
This commit is contained in:
parent
cf5ad64fd4
commit
a616982ec3
2
app.js
2
app.js
@ -1,5 +1,7 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* SQL API loader
|
* SQL API loader
|
||||||
* ===============
|
* ===============
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* this module allows to auth user using an pregenerated api key
|
* this module allows to auth user using an pregenerated api key
|
||||||
*/
|
*/
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
var ApiKeyAuth = require('./apikey'),
|
var ApiKeyAuth = require('./apikey'),
|
||||||
OAuthAuth = require('./oauth');
|
OAuthAuth = require('./oauth');
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
// too bound to the request object, but ok for now
|
// too bound to the request object, but ok for now
|
||||||
var _ = require('underscore');
|
var _ = require('underscore');
|
||||||
var OAuthUtil = require('oauth-client');
|
var OAuthUtil = require('oauth-client');
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
const util = require('util');
|
const util = require('util');
|
||||||
|
|
||||||
const bodyParserMiddleware = require('../middlewares/body-parser');
|
const bodyParserMiddleware = require('../middlewares/body-parser');
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
const AuthApi = require('../auth/auth_api');
|
const AuthApi = require('../auth/auth_api');
|
||||||
const basicAuth = require('basic-auth');
|
const basicAuth = require('basic-auth');
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Connect - bodyParser
|
* Connect - bodyParser
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
module.exports = function connectionParams (userDatabaseService) {
|
module.exports = function connectionParams (userDatabaseService) {
|
||||||
return function connectionParamsMiddleware (req, res, next) {
|
return function connectionParamsMiddleware (req, res, next) {
|
||||||
const { user, api_key: apikeyToken, authorizationLevel } = res.locals;
|
const { user, api_key: apikeyToken, authorizationLevel } = res.locals;
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
const PSQL = require('cartodb-psql');
|
const PSQL = require('cartodb-psql');
|
||||||
|
|
||||||
const remainingQuotaQuery = 'SELECT _CDB_UserQuotaInBytes() - CDB_UserDataSize(current_schema()) AS remaining_quota';
|
const remainingQuotaQuery = 'SELECT _CDB_UserQuotaInBytes() - CDB_UserDataSize(current_schema()) AS remaining_quota';
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
const errorHandlerFactory = require('../services/error_handler_factory');
|
const errorHandlerFactory = require('../services/error_handler_factory');
|
||||||
|
|
||||||
module.exports = function error() {
|
module.exports = function error() {
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
module.exports.initializeProfilerMiddleware = function initializeProfiler (label) {
|
module.exports.initializeProfilerMiddleware = function initializeProfiler (label) {
|
||||||
return function initializeProfilerMiddleware (req, res, next) {
|
return function initializeProfilerMiddleware (req, res, next) {
|
||||||
if (req.profiler) {
|
if (req.profiler) {
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
module.exports = function timeoutLimits (metadataBackend) {
|
module.exports = function timeoutLimits (metadataBackend) {
|
||||||
return function timeoutLimitsMiddleware (req, res, next) {
|
return function timeoutLimitsMiddleware (req, res, next) {
|
||||||
const { user, authorizationLevel } = res.locals;
|
const { user, authorizationLevel } = res.locals;
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
const CdbRequest = require('../models/cartodb_request');
|
const CdbRequest = require('../models/cartodb_request');
|
||||||
|
|
||||||
module.exports = function user(metadataBackend) {
|
module.exports = function user(metadataBackend) {
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
function ArrayBufferSer(type, data, options) {
|
function ArrayBufferSer(type, data, options) {
|
||||||
if(type === undefined) {
|
if(type === undefined) {
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* this module provides cartodb-specific interpretation
|
* this module provides cartodb-specific interpretation
|
||||||
* of request headers
|
* of request headers
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
var fs = require("fs");
|
var fs = require("fs");
|
||||||
var formats = {};
|
var formats = {};
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
var crypto = require('crypto');
|
var crypto = require('crypto');
|
||||||
var step = require('step');
|
var step = require('step');
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
var ogr = require('./../ogr');
|
var ogr = require('./../ogr');
|
||||||
|
|
||||||
function CsvFormat() {}
|
function CsvFormat() {}
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
var ogr = require('./../ogr');
|
var ogr = require('./../ogr');
|
||||||
|
|
||||||
function GeoPackageFormat() {}
|
function GeoPackageFormat() {}
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
var ogr = require('./../ogr');
|
var ogr = require('./../ogr');
|
||||||
|
|
||||||
function KmlFormat() {}
|
function KmlFormat() {}
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
var step = require('step');
|
var step = require('step');
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
var spawn = require('child_process').spawn;
|
var spawn = require('child_process').spawn;
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
var ogr = require('./../ogr');
|
var ogr = require('./../ogr');
|
||||||
|
|
||||||
function SpatiaLiteFormat() {}
|
function SpatiaLiteFormat() {}
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
var step = require('step');
|
var step = require('step');
|
||||||
var PSQL = require('cartodb-psql');
|
var PSQL = require('cartodb-psql');
|
||||||
var assert = require('assert');
|
var assert = require('assert');
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
var _ = require('underscore');
|
var _ = require('underscore');
|
||||||
|
|
||||||
var pg = require('./../pg');
|
var pg = require('./../pg');
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
var _ = require('underscore');
|
var _ = require('underscore');
|
||||||
|
|
||||||
var pg = require('./../pg');
|
var pg = require('./../pg');
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
var _ = require('underscore');
|
var _ = require('underscore');
|
||||||
|
|
||||||
var pg = require('./../pg');
|
var pg = require('./../pg');
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
var pg = require('./../pg');
|
var pg = require('./../pg');
|
||||||
|
|
||||||
var svg_width = 1024.0;
|
var svg_width = 1024.0;
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
var pg = require('./../pg');
|
var pg = require('./../pg');
|
||||||
var _ = require('underscore');
|
var _ = require('underscore');
|
||||||
var geojson = require('./geojson');
|
var geojson = require('./geojson');
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
var step = require('step'),
|
var step = require('step'),
|
||||||
fs = require('fs');
|
fs = require('fs');
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
var _ = require('underscore');
|
var _ = require('underscore');
|
||||||
|
|
||||||
// reference http://www.postgresql.org/docs/9.3/static/errcodes-appendix.html
|
// reference http://www.postgresql.org/docs/9.3/static/errcodes-appendix.html
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
// CartoDB SQL API
|
// CartoDB SQL API
|
||||||
//
|
//
|
||||||
// all requests expect the following URL args:
|
// all requests expect the following URL args:
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
var QueryTables = require('cartodb-query-tables');
|
var QueryTables = require('cartodb-query-tables');
|
||||||
|
|
||||||
var generateMD5 = require('../utils/md5');
|
var generateMD5 = require('../utils/md5');
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
class ErrorHandler extends Error {
|
class ErrorHandler extends Error {
|
||||||
constructor({ message, context, detail, hint, http_status, name }) {
|
constructor({ message, context, detail, hint, http_status, name }) {
|
||||||
super(message);
|
super(message);
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
const ErrorHandler = require('./error_handler');
|
const ErrorHandler = require('./error_handler');
|
||||||
const { codeToCondition } = require('../postgresql/error_codes');
|
const { codeToCondition } = require('../postgresql/error_codes');
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
const FORBIDDEN_ENTITIES = {
|
const FORBIDDEN_ENTITIES = {
|
||||||
carto: ['*'],
|
carto: ['*'],
|
||||||
cartodb: [
|
cartodb: [
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
const PSQL = require('cartodb-psql');
|
const PSQL = require('cartodb-psql');
|
||||||
const copyTo = require('pg-copy-streams').to;
|
const copyTo = require('pg-copy-streams').to;
|
||||||
const copyFrom = require('pg-copy-streams').from;
|
const copyFrom = require('pg-copy-streams').from;
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
const { getFormatFromCopyQuery } = require('../utils/query_info');
|
const { getFormatFromCopyQuery } = require('../utils/query_info');
|
||||||
|
|
||||||
module.exports = class StreamCopyMetrics {
|
module.exports = class StreamCopyMetrics {
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
function isApiKeyFound(apikey) {
|
function isApiKeyFound(apikey) {
|
||||||
return apikey.type !== null &&
|
return apikey.type !== null &&
|
||||||
apikey.user !== null &&
|
apikey.user !== null &&
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* UserLimits
|
* UserLimits
|
||||||
* @param {cartodb-redis} metadataBackend
|
* @param {cartodb-redis} metadataBackend
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
var _ = require('underscore');
|
var _ = require('underscore');
|
||||||
var debug = require('debug')('windshaft:stats_client');
|
var debug = require('debug')('windshaft:stats_client');
|
||||||
var StatsD = require('node-statsd').StatsD;
|
var StatsD = require('node-statsd').StatsD;
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
var Profiler = require('step-profiler');
|
var Profiler = require('step-profiler');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
const COPY_FORMATS = ['TEXT', 'CSV', 'BINARY'];
|
const COPY_FORMATS = ['TEXT', 'CSV', 'BINARY'];
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
function ArrayBufferSer(arrayBuffer) {
|
function ArrayBufferSer(arrayBuffer) {
|
||||||
this.buffer = arrayBuffer;
|
this.buffer = arrayBuffer;
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../helper');
|
require('../helper');
|
||||||
|
|
||||||
var server = require('../../app/server')();
|
var server = require('../../app/server')();
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../helper');
|
require('../helper');
|
||||||
|
|
||||||
var server = require('../../app/server')();
|
var server = require('../../app/server')();
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Requires the database and tables setup in config/environments/test.js to exist
|
* Requires the database and tables setup in config/environments/test.js to exist
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
const assert = require('../support/assert');
|
const assert = require('../support/assert');
|
||||||
const TestClient = require('../support/test-client');
|
const TestClient = require('../support/test-client');
|
||||||
const BatchTestClient = require('../support/batch-test-client');
|
const BatchTestClient = require('../support/batch-test-client');
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../helper');
|
require('../helper');
|
||||||
|
|
||||||
var assert = require('../support/assert');
|
var assert = require('../support/assert');
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../../helper');
|
require('../../helper');
|
||||||
var assert = require('../../support/assert');
|
var assert = require('../../support/assert');
|
||||||
var redisUtils = require('../../support/redis_utils');
|
var redisUtils = require('../../support/redis_utils');
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../../helper');
|
require('../../helper');
|
||||||
|
|
||||||
var assert = require('../../support/assert');
|
var assert = require('../../support/assert');
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../../helper');
|
require('../../helper');
|
||||||
|
|
||||||
var assert = require('../../support/assert');
|
var assert = require('../../support/assert');
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../../helper');
|
require('../../helper');
|
||||||
|
|
||||||
var assert = require('../../support/assert');
|
var assert = require('../../support/assert');
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../../helper');
|
require('../../helper');
|
||||||
|
|
||||||
var assert = require('../../support/assert');
|
var assert = require('../../support/assert');
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../../helper');
|
require('../../helper');
|
||||||
|
|
||||||
var assert = require('../../support/assert');
|
var assert = require('../../support/assert');
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Requires the database and tables setup in config/environments/test.js to exist
|
* Requires the database and tables setup in config/environments/test.js to exist
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../../helper');
|
require('../../helper');
|
||||||
var assert = require('../../support/assert');
|
var assert = require('../../support/assert');
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../../helper');
|
require('../../helper');
|
||||||
var assert = require('../../support/assert');
|
var assert = require('../../support/assert');
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Requires the database and tables setup in config/environments/test.js to exist
|
* Requires the database and tables setup in config/environments/test.js to exist
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../../helper');
|
require('../../helper');
|
||||||
|
|
||||||
var BatchTestClient = require('../../support/batch-test-client');
|
var BatchTestClient = require('../../support/batch-test-client');
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../../helper');
|
require('../../helper');
|
||||||
var assert = require('../../support/assert');
|
var assert = require('../../support/assert');
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../../helper');
|
require('../../helper');
|
||||||
var assert = require('../../support/assert');
|
var assert = require('../../support/assert');
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../../helper');
|
require('../../helper');
|
||||||
|
|
||||||
var assert = require('../../support/assert');
|
var assert = require('../../support/assert');
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../../helper');
|
require('../../helper');
|
||||||
var assert = require('../../support/assert');
|
var assert = require('../../support/assert');
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../../helper');
|
require('../../helper');
|
||||||
|
|
||||||
var assert = require('../../support/assert');
|
var assert = require('../../support/assert');
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
'use const';
|
'use strict';
|
||||||
|
|
||||||
var server = require('../../app/server')();
|
var server = require('../../app/server')();
|
||||||
const assert = require('../support/assert');
|
const assert = require('../support/assert');
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
const querystring = require('querystring');
|
const querystring = require('querystring');
|
||||||
const StatsClient = require('../../app/stats/client');
|
const StatsClient = require('../../app/stats/client');
|
||||||
const statsClient = StatsClient.getInstance(global.settings.statsd);
|
const statsClient = StatsClient.getInstance(global.settings.statsd);
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../helper');
|
require('../helper');
|
||||||
|
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../helper');
|
require('../helper');
|
||||||
|
|
||||||
var server = require('../../app/server')();
|
var server = require('../../app/server')();
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
var server = require('../../app/server')();
|
var server = require('../../app/server')();
|
||||||
var assert = require('../support/assert');
|
var assert = require('../support/assert');
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../../helper');
|
require('../../helper');
|
||||||
require('../../support/assert');
|
require('../../support/assert');
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../../helper');
|
require('../../helper');
|
||||||
require('../../support/assert');
|
require('../../support/assert');
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../../helper');
|
require('../../helper');
|
||||||
require('../../support/assert');
|
require('../../support/assert');
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../../helper');
|
require('../../helper');
|
||||||
|
|
||||||
var server = require('../../../app/server')();
|
var server = require('../../../app/server')();
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../../helper');
|
require('../../helper');
|
||||||
|
|
||||||
var server = require('../../../app/server')();
|
var server = require('../../../app/server')();
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../../helper');
|
require('../../helper');
|
||||||
|
|
||||||
var server = require('../../../app/server')();
|
var server = require('../../../app/server')();
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../../helper');
|
require('../../helper');
|
||||||
|
|
||||||
var server = require('../../../app/server')();
|
var server = require('../../../app/server')();
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../../helper');
|
require('../../helper');
|
||||||
|
|
||||||
var server = require('../../../app/server')();
|
var server = require('../../../app/server')();
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../../helper');
|
require('../../helper');
|
||||||
|
|
||||||
var server = require('../../../app/server')();
|
var server = require('../../../app/server')();
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
const TestClient = require('../../support/test-client');
|
const TestClient = require('../../support/test-client');
|
||||||
|
|
||||||
require('../../support/assert');
|
require('../../support/assert');
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../../helper');
|
require('../../helper');
|
||||||
|
|
||||||
var server = require('../../../app/server')();
|
var server = require('../../../app/server')();
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../helper');
|
require('../helper');
|
||||||
|
|
||||||
var assert = require('../support/assert');
|
var assert = require('../support/assert');
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../helper');
|
require('../helper');
|
||||||
require('../support/assert');
|
require('../support/assert');
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../helper');
|
require('../helper');
|
||||||
|
|
||||||
var server = require('../../app/server')();
|
var server = require('../../app/server')();
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../helper');
|
require('../helper');
|
||||||
|
|
||||||
var appServer = require('../../app/server');
|
var appServer = require('../../app/server');
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../helper');
|
require('../helper');
|
||||||
|
|
||||||
var server = require('../../app/server')();
|
var server = require('../../app/server')();
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
const assert = require('../support/assert');
|
const assert = require('../support/assert');
|
||||||
const TestClient = require('../support/test-client');
|
const TestClient = require('../support/test-client');
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../helper');
|
require('../helper');
|
||||||
|
|
||||||
var server = require('../../app/server')();
|
var server = require('../../app/server')();
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../helper');
|
require('../helper');
|
||||||
|
|
||||||
const server = require('../../app/server')();
|
const server = require('../../app/server')();
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../helper');
|
require('../helper');
|
||||||
|
|
||||||
var server = require('../../app/server')();
|
var server = require('../../app/server')();
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../helper');
|
require('../helper');
|
||||||
|
|
||||||
var qs = require('querystring');
|
var qs = require('querystring');
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../helper');
|
require('../helper');
|
||||||
|
|
||||||
const qs = require('querystring');
|
const qs = require('querystring');
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../helper');
|
require('../helper');
|
||||||
|
|
||||||
var server = require('../../app/server')();
|
var server = require('../../app/server')();
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../helper');
|
require('../helper');
|
||||||
|
|
||||||
var server = require('../../app/server')();
|
var server = require('../../app/server')();
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../helper');
|
require('../helper');
|
||||||
|
|
||||||
var server = require('../../app/server')();
|
var server = require('../../app/server')();
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../helper');
|
require('../helper');
|
||||||
|
|
||||||
var server = require('../../app/server')();
|
var server = require('../../app/server')();
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../helper');
|
require('../helper');
|
||||||
|
|
||||||
var server = require('../../app/server')();
|
var server = require('../../app/server')();
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Requires the database and tables setup in config/environments/test.js to exist
|
* Requires the database and tables setup in config/environments/test.js to exist
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../helper');
|
require('../helper');
|
||||||
|
|
||||||
var assert = require('../support/assert');
|
var assert = require('../support/assert');
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
require('../helper');
|
require('../helper');
|
||||||
|
|
||||||
var server = require('../../app/server')();
|
var server = require('../../app/server')();
|
||||||
|
@ -1,2 +1,4 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
global.settings = require('../config/environments/test');
|
global.settings = require('../config/environments/test');
|
||||||
process.env.NODE_ENV = 'test';
|
process.env.NODE_ENV = 'test';
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user