File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ module.exports = {
9
9
|| 'dev' ;
10
10
this . options . region = _ . get ( this , 'options.region' )
11
11
|| 'us-central1' ;
12
+ this . options . runtime = _ . get ( this , 'options.runtime' )
13
+ || 'nodejs8' ;
12
14
13
15
return BbPromise . resolve ( ) ;
14
16
} ,
Original file line number Diff line number Diff line change @@ -20,15 +20,18 @@ describe('Utils', () => {
20
20
. setDefaults ( ) . then ( ( ) => {
21
21
expect ( googleCommand . options . stage ) . toEqual ( 'dev' ) ;
22
22
expect ( googleCommand . options . region ) . toEqual ( 'us-central1' ) ;
23
+ expect ( googleCommand . options . runtime ) . toEqual ( 'nodejs8' ) ;
23
24
} ) ) ;
24
25
25
26
it ( 'should set the options when they are provided' , ( ) => {
26
27
googleCommand . options . stage = 'my-stage' ;
27
28
googleCommand . options . region = 'my-region' ;
29
+ googleCommand . options . runtime = 'nodejs6' ;
28
30
29
31
return googleCommand . setDefaults ( ) . then ( ( ) => {
30
32
expect ( googleCommand . options . stage ) . toEqual ( 'my-stage' ) ;
31
33
expect ( googleCommand . options . region ) . toEqual ( 'my-region' ) ;
34
+ expect ( googleCommand . options . runtime ) . toEqual ( 'nodejs6' ) ;
32
35
} ) ;
33
36
} ) ;
34
37
} ) ;
You can’t perform that action at this time.
0 commit comments