Skip to content

Commit 5514c54

Browse files
author
Jap Purohit
committed
fix: 🚨 fixing the lint issue and test case
1 parent af4ce54 commit 5514c54

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/deploy/events/schedule/compileScheduledEvents.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ describe('#httpValidate()', () => {
466466
},
467467
};
468468
serverlessStepFunctions.compileScheduledEvents();
469-
expect(serverlessStepFunctions.serverless.service.provider.compiledCloudFormationTemplate.Resources.FirstStepFunctionsEventsRuleSchedule1.Type).to.equal('AWS::Scheduler::Schedule');
469+
expect(serverlessStepFunctions.serverless.service.provider.compiledCloudFormationTemplate.Resources.FirstStepFunctionsSchedulerSchedule1.Type).to.equal('AWS::Scheduler::Schedule');
470470
});
471471

472472
it('should have service as scheduler.amazonaws.com if method is scheduler', () => {
@@ -509,7 +509,7 @@ describe('#httpValidate()', () => {
509509
};
510510
serverlessStepFunctions.compileScheduledEvents();
511511

512-
expect(serverlessStepFunctions.serverless.service.provider.compiledCloudFormationTemplate.Resources.FirstStepFunctionsEventsRuleSchedule1.Properties.ScheduleExpressionTimezone).to.equal('Asia/Mumbai');
512+
expect(serverlessStepFunctions.serverless.service.provider.compiledCloudFormationTemplate.Resources.FirstStepFunctionsSchedulerSchedule1.Properties.ScheduleExpressionTimezone).to.equal('Asia/Mumbai');
513513
});
514514

515515
it('should accept timezone only if method is scheduler', () => {

lib/naming.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ module.exports = {
6464
},
6565

6666
getSchedulerScheduleLogicalId(stateMachineName, scheduleIndex) {
67-
return `${this.provider.naming.getNormalizedFunctionName(
68-
stateMachineName
69-
)}StepFunctionsSchedulerSchedule${scheduleIndex}`;
67+
return `${this.provider.naming.getNormalizedFunctionName(
68+
stateMachineName,
69+
)}StepFunctionsSchedulerSchedule${scheduleIndex}`;
7070
},
7171

7272
getScheduleToStepFunctionsIamRoleLogicalId(stateMachineName) {

0 commit comments

Comments
 (0)