File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -106,9 +106,9 @@ module.exports = function (serverless) {
106106 Properties : {
107107 StageName : deployment . Properties . StageName ,
108108 Description : `${ deployment . Properties . StageName } stage of ${ serverless . service . service } ` ,
109- RestApiId : {
110- Ref : _ . get ( serverless , 'service.provider.apiGateway.restApiId' , ' ApiGatewayRestApi')
111- } ,
109+ RestApiId : _ . get ( serverless , 'service.provider.apiGateway.restApiId' , {
110+ Ref : ' ApiGatewayRestApi'
111+ } ) ,
112112 DeploymentId : {
113113 Ref : deploymentKey
114114 } ,
Original file line number Diff line number Diff line change @@ -499,7 +499,7 @@ describe('The `serverless-api-stage` plugin', function () {
499499 pluginInstance . hooks [ 'before:deploy:deploy' ] ( ) ;
500500 } ) ;
501501 it ( 'Adds an API Gateway Stage resource to the CloudFormation template with specified variables and settings' , function ( ) {
502- expect ( serverless . service . provider . compiledCloudFormationTemplate . Resources . ApiGatewayStageTesting . Properties . RestApiId . Ref ) . to . equal ( serverless . service . provider . apiGateway . restApiId ) ;
502+ expect ( serverless . service . provider . compiledCloudFormationTemplate . Resources . ApiGatewayStageTesting . Properties . RestApiId ) . to . equal ( serverless . service . provider . apiGateway . restApiId ) ;
503503 } ) ;
504504 } ) ;
505505 } ) ;
You can’t perform that action at this time.
0 commit comments