File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ var serveStatic = require('serve-static');
13
13
14
14
module . exports = function ( grunt ) {
15
15
var contextRoot = grunt . option ( 'contextRoot' ) || "dev-console" ;
16
+ var isMac = / ^ d a r w i n / . test ( process . platform ) || grunt . option ( 'mac' ) ;
16
17
17
18
// Load grunt tasks automatically
18
19
require ( 'load-grunt-tasks' ) ( grunt , {
@@ -704,14 +705,14 @@ module.exports = function (grunt) {
704
705
705
706
grunt . registerTask ( 'test-integration' ,
706
707
grunt . option ( 'baseUrl' ) ?
707
- [ grunt . option ( 'mac' ) ? 'protractor:mac' : 'protractor:default' ] : // if a baseUrl is defined assume we dont want to run the local grunt server
708
+ [ isMac ? 'protractor:mac' : 'protractor:default' ] : // if a baseUrl is defined assume we dont want to run the local grunt server
708
709
[
709
710
'clean:server' ,
710
711
'concurrent:server' ,
711
712
'autoprefixer' ,
712
713
'connect:test' ,
713
714
'add-redirect-uri' ,
714
- ( grunt . option ( 'mac' ) ? 'protractor:mac' : 'protractor:default' ) ,
715
+ ( isMac ? 'protractor:mac' : 'protractor:default' ) ,
715
716
'clean:server'
716
717
]
717
718
) ;
You can’t perform that action at this time.
0 commit comments