Skip to content

Commit

Permalink
#178 use typeof TESTING
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeijer committed Feb 26, 2015
1 parent c601bc2 commit 3179e5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/middleware/executor/Executor.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ define(['logManager',
],
function (logManager, fs, path, child_process, bufferEqual, DataStore, JobInfo, WorkerInfo) {
'use strict';
var jobListDBFile = TESTING ? 'test-tmp/jobList.nedb' : 'jobList.nedb';
var workerListDBFile = TESTING ? 'test-tmp/workerList.nedb' : 'workerList.nedb';
var jobListDBFile = typeof TESTING !== 'undefined' ? 'test-tmp/jobList.nedb' : 'jobList.nedb';
var workerListDBFile = typeof TESTING !== 'undefined' ? 'test-tmp/workerList.nedb' : 'workerList.nedb';
var logger = logManager.create('REST-Executor'); //how to define your own logger which will use the global settings

var jobList = new DataStore({filename: jobListDBFile, autoload: true});
Expand Down

0 comments on commit 3179e5c

Please sign in to comment.