File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ var constants = require('../runner').constants;
14
14
var EVENT_TEST_PASS = constants . EVENT_TEST_PASS ;
15
15
var EVENT_TEST_FAIL = constants . EVENT_TEST_FAIL ;
16
16
17
- var isBrowser = require ( '../ utils' ) . isBrowser ;
17
+ const isBrowser = utils . isBrowser ( ) ;
18
18
19
19
function getBrowserWindowSize ( ) {
20
20
if ( 'innerHeight' in global ) {
@@ -34,7 +34,7 @@ exports = module.exports = Base;
34
34
* Check if both stdio streams are associated with a tty.
35
35
*/
36
36
37
- var isatty = isBrowser ? true : process . stdout . isTTY && process . stderr . isTTY ;
37
+ var isatty = isBrowser || ( process . stdout . isTTY && process . stderr . isTTY ) ;
38
38
39
39
/**
40
40
* Save log references to avoid tests interfering (see GH-3604).
@@ -46,7 +46,7 @@ var consoleLog = console.log;
46
46
*/
47
47
48
48
exports . useColors =
49
- ! utils . isBrowser ( ) &&
49
+ ! isBrowser &&
50
50
( supportsColor . stdout || process . env . MOCHA_COLORS !== undefined ) ;
51
51
52
52
/**
You can’t perform that action at this time.
0 commit comments