From 64468a6f169786b0127140a4506debe5d5b8fa25 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Sat, 3 Jan 2015 20:10:08 -0500 Subject: [PATCH] more linting --- tests/mocks/databasemock.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/tests/mocks/databasemock.js b/tests/mocks/databasemock.js index e694a9c9ba..d3dea94a8c 100644 --- a/tests/mocks/databasemock.js +++ b/tests/mocks/databasemock.js @@ -5,10 +5,9 @@ (function(module) { 'use strict'; - /*global before*/ + /*global require, before*/ - var utils = require('./../../public/src/utils.js'), - path = require('path'), + var path = require('path'), nconf = require('nconf'), winston = require('winston'), errorText; @@ -30,23 +29,23 @@ if(!testDbConfig){ errorText = 'test_database is not defined'; winston.info( - "\n===========================================================\n"+ - "Please, add parameters for test database in config.json\n"+ - "For example (redis):\n"+ + '\n===========================================================\n'+ + 'Please, add parameters for test database in config.json\n'+ + 'For example (redis):\n'+ '"test_database": {' + '\n' + ' "host": "127.0.0.1",' + '\n' + ' "port": "6379",' + '\n' + ' "password": "",' + '\n' + ' "database": "1"' + '\n' + '}\n'+ - " or (mongo):\n" + + ' or (mongo):\n' + '"test_database": {' + '\n' + ' "host": "127.0.0.1",' + '\n' + ' "port": "27017",' + '\n' + ' "password": "",' + '\n' + ' "database": "1"' + '\n' + '}\n'+ - "===========================================================" + '===========================================================' ); winston.error(errorText); throw new Error(errorText);