Skip to content

Commit f272ddf

Browse files
Clean up
1 parent 1256ab4 commit f272ddf

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

lib/deploy/events/apiGateway/methods.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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) {

lib/deploy/events/apiGateway/methods.test.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff 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', {

0 commit comments

Comments
 (0)