File tree Expand file tree Collapse file tree 2 files changed +1
-15
lines changed
lib/deploy/events/apiGateway Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ module.exports = {
113113 return Object . assign (
114114 defaultRequestTemplates ,
115115 _ . get ( http , [ 'request' , 'template' ] )
116- ) ;
116+ ) ;
117117 } ,
118118
119119 getDefaultRequestTemplates ( stateMachineName , customName ) {
Original file line number Diff line number Diff line change @@ -82,20 +82,6 @@ describe('#methods()', () => {
8282 . to . have . property ( 'Integration' ) ;
8383 } ) ;
8484
85- // Remove these 2 specs
86- it ( 'should set stateMachinelogical ID to RequestTemplates when customName is not set' , ( ) => {
87- expect ( serverlessStepFunctions . getMethodIntegration ( 'stateMachine' ) . Properties
88- . Integration . RequestTemplates [ 'application/json' ] [ 'Fn::Join' ] [ 1 ] [ 2 ] . Ref )
89- . to . be . equal ( 'StateMachineStepFunctionsStateMachine' ) ;
90- } ) ;
91-
92- it ( 'should set custom stateMachinelogical ID to RequestTemplates when customName is set' ,
93- ( ) => {
94- expect ( serverlessStepFunctions . getMethodIntegration ( 'stateMachine' , 'custom' ) . Properties
95- . Integration . RequestTemplates [ 'application/json' ] [ 'Fn::Join' ] [ 1 ] [ 2 ] . Ref )
96- . to . be . equal ( 'Custom' ) ;
97- } ) ;
98-
9985 it ( 'should set Access-Control-Allow-Origin header when cors is true' ,
10086 ( ) => {
10187 expect ( serverlessStepFunctions . getMethodIntegration ( 'stateMachine' , 'custom' , {
You can’t perform that action at this time.
0 commit comments