more linting

v1.18.x
psychobunny 11 years ago
parent 357de92624
commit 64468a6f16

@ -5,10 +5,9 @@
(function(module) { (function(module) {
'use strict'; 'use strict';
/*global before*/ /*global require, before*/
var utils = require('./../../public/src/utils.js'), var path = require('path'),
path = require('path'),
nconf = require('nconf'), nconf = require('nconf'),
winston = require('winston'), winston = require('winston'),
errorText; errorText;
@ -30,23 +29,23 @@
if(!testDbConfig){ if(!testDbConfig){
errorText = 'test_database is not defined'; errorText = 'test_database is not defined';
winston.info( winston.info(
"\n===========================================================\n"+ '\n===========================================================\n'+
"Please, add parameters for test database in config.json\n"+ 'Please, add parameters for test database in config.json\n'+
"For example (redis):\n"+ 'For example (redis):\n'+
'"test_database": {' + '\n' + '"test_database": {' + '\n' +
' "host": "127.0.0.1",' + '\n' + ' "host": "127.0.0.1",' + '\n' +
' "port": "6379",' + '\n' + ' "port": "6379",' + '\n' +
' "password": "",' + '\n' + ' "password": "",' + '\n' +
' "database": "1"' + '\n' + ' "database": "1"' + '\n' +
'}\n'+ '}\n'+
" or (mongo):\n" + ' or (mongo):\n' +
'"test_database": {' + '\n' + '"test_database": {' + '\n' +
' "host": "127.0.0.1",' + '\n' + ' "host": "127.0.0.1",' + '\n' +
' "port": "27017",' + '\n' + ' "port": "27017",' + '\n' +
' "password": "",' + '\n' + ' "password": "",' + '\n' +
' "database": "1"' + '\n' + ' "database": "1"' + '\n' +
'}\n'+ '}\n'+
"===========================================================" '==========================================================='
); );
winston.error(errorText); winston.error(errorText);
throw new Error(errorText); throw new Error(errorText);

Loading…
Cancel
Save