Skip to content

Commit f48c18d

Browse files
committed
better names
1 parent eb65721 commit f48c18d

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

protocol-designer/cypress/support/StepExecution.ts

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,25 +37,23 @@ export const runSteps = (steps: StepsList): void => {
3737
if (
3838
!isEnumValue(
3939
enumsToCheck,
40-
steps.map(step => step.step)
40+
steps.map(item => item.step)
4141
)
4242
) {
4343
throw new Error('One or more steps are unrecognized.')
4444
}
4545

46-
// evaluate each step and execute the appropriate function
47-
48-
steps.forEach(step => {
49-
if (isEnumValue([SetupActions], step.step)) {
50-
executeSetupSteps(step)
51-
} else if (isEnumValue([SetupVerifications], step)) {
52-
executeVerificationStep(step)
53-
} else if (isEnumValue([UniversalActions], step)) {
54-
executeUniversalAction(step)
55-
} else if (isEnumValue([ModActions], step)) {
56-
executeModSteps(step)
57-
} else if (isEnumValue([ModVerifications], step)) {
58-
executeVerifyModStep(step)
46+
steps.forEach(item => {
47+
if (isEnumValue([SetupActions], item.step)) {
48+
executeSetupSteps(item)
49+
} else if (isEnumValue([SetupVerifications], item.step)) {
50+
executeVerificationStep(item)
51+
} else if (isEnumValue([UniversalActions], item.step)) {
52+
executeUniversalAction(item)
53+
} else if (isEnumValue([ModActions], item.step)) {
54+
executeModSteps(item)
55+
} else if (isEnumValue([ModVerifications], item.step)) {
56+
executeVerifyModStep(item)
5957
}
6058
})
6159
}

0 commit comments

Comments
 (0)