diff --git a/shared/utils.js b/shared/utils.js index 7fe02ae..66a87a9 100644 --- a/shared/utils.js +++ b/shared/utils.js @@ -6,10 +6,8 @@ const BbPromise = require('bluebird'); module.exports = { setDefaults() { this.options.stage = _.get(this, 'options.stage') - || _.get(this, 'serverless.service.provider.stage') || 'dev'; this.options.region = _.get(this, 'options.region') - || _.get(this, 'serverless.service.provider.region') || 'us-central1'; return BbPromise.resolve(); diff --git a/shared/utils.test.js b/shared/utils.test.js index 0510cee..a45ff4b 100644 --- a/shared/utils.test.js +++ b/shared/utils.test.js @@ -31,17 +31,5 @@ describe('Utils', () => { expect(googleCommand.options.region).toEqual('my-region'); }); }); - - it('should set the provider values for stage and region if provided', () => { - googleCommand.serverless.service.provider = { - stage: 'my-stage', - region: 'my-region', - }; - - return googleCommand.setDefaults().then(() => { - expect(googleCommand.options.stage).toEqual('my-stage'); - expect(googleCommand.options.region).toEqual('my-region'); - }); - }); }); });