File tree Expand file tree Collapse file tree 2 files changed +0
-14
lines changed Expand file tree Collapse file tree 2 files changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,8 @@ const BbPromise = require('bluebird');
66module . exports = {
77 setDefaults ( ) {
88 this . options . stage = _ . get ( this , 'options.stage' )
9- || _ . get ( this , 'serverless.service.provider.stage' )
109 || 'dev' ;
1110 this . options . region = _ . get ( this , 'options.region' )
12- || _ . get ( this , 'serverless.service.provider.region' )
1311 || 'us-central1' ;
1412
1513 return BbPromise . resolve ( ) ;
Original file line number Diff line number Diff line change @@ -31,17 +31,5 @@ describe('Utils', () => {
3131 expect ( googleCommand . options . region ) . toEqual ( 'my-region' ) ;
3232 } ) ;
3333 } ) ;
34-
35- it ( 'should set the provider values for stage and region if provided' , ( ) => {
36- googleCommand . serverless . service . provider = {
37- stage : 'my-stage' ,
38- region : 'my-region' ,
39- } ;
40-
41- return googleCommand . setDefaults ( ) . then ( ( ) => {
42- expect ( googleCommand . options . stage ) . toEqual ( 'my-stage' ) ;
43- expect ( googleCommand . options . region ) . toEqual ( 'my-region' ) ;
44- } ) ;
45- } ) ;
4634 } ) ;
4735} ) ;
You can’t perform that action at this time.
0 commit comments