File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ const FILES_TO_CLEAN = [
38
38
] ;
39
39
40
40
gulp . task ( 'test' , [ 'lint' ] , function ( ) {
41
- if ( process . env . hasOwnProperty ( 'BROWSER_NAME ' ) ) {
41
+ if ( process . env . hasOwnProperty ( 'BROWSERS ' ) ) {
42
42
return testZuul ( ) ;
43
43
} else {
44
44
return testNode ( ) ;
@@ -78,18 +78,7 @@ function testNode () {
78
78
// runs zuul through shell process
79
79
function testZuul ( ) {
80
80
const ZUUL_CMD = './node_modules/zuul/bin/zuul' ;
81
- const args = [
82
- '--browser-name' ,
83
- process . env . BROWSER_NAME ,
84
- '--browser-version' ,
85
- process . env . BROWSER_VERSION
86
- ] ;
87
- if ( process . env . hasOwnProperty ( 'BROWSER_PLATFORM' ) ) {
88
- args . push ( '--browser-platform' ) ;
89
- args . push ( process . env . BROWSER_PLATFORM ) ;
90
- }
91
- args . push ( TEST_FILE ) ;
92
- const zuulChild = child . spawn ( ZUUL_CMD , args , { stdio : 'inherit' } ) ;
81
+ const zuulChild = child . spawn ( ZUUL_CMD , [ TEST_FILE ] , { stdio : 'inherit' } ) ;
93
82
zuulChild . on ( 'exit' , function ( code ) {
94
83
cleanFiles ( FILES_TO_CLEAN ) ;
95
84
process . exit ( code ) ;
You can’t perform that action at this time.
0 commit comments