Skip to content

Commit 1c91686

Browse files
committed
refactor(gen:test): move DEBUG var to mocha.conf.js
1 parent 3310a1c commit 1c91686

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

Diff for: gulpfile.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ const mocha = lazypipe()
2424
timeout: 120000,
2525
globals: {
2626
should: require('should')
27-
}
27+
},
28+
require: [
29+
'./mocha.conf'
30+
]
2831
});
2932

3033
const transpile = lazypipe()

Diff for: mocha.conf.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
'use strict';
2+
3+
global.DEBUG = !!process.env.DEBUG;

Diff for: src/test/main.test.js

-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ const defaultOptions = {
2626
oauth: [],
2727
socketio: true
2828
};
29-
// var DEBUG = true;
30-
var DEBUG = false;
3129
const TEST_DIR = __dirname;
3230

3331
function copyAsync(src, dest) {

0 commit comments

Comments
 (0)