Skip to content

Commit

Permalink
better names
Browse files Browse the repository at this point in the history
  • Loading branch information
y3rsh committed Feb 5, 2025
1 parent eb65721 commit f48c18d
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions protocol-designer/cypress/support/StepExecution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,25 +37,23 @@ export const runSteps = (steps: StepsList): void => {
if (
!isEnumValue(
enumsToCheck,
steps.map(step => step.step)
steps.map(item => item.step)
)
) {

Check warning on line 42 in protocol-designer/cypress/support/StepExecution.ts

View check run for this annotation

Codecov / codecov/patch

protocol-designer/cypress/support/StepExecution.ts#L37-L42

Added lines #L37 - L42 were not covered by tests
throw new Error('One or more steps are unrecognized.')
}

// evaluate each step and execute the appropriate function

steps.forEach(step => {
if (isEnumValue([SetupActions], step.step)) {
executeSetupSteps(step)
} else if (isEnumValue([SetupVerifications], step)) {
executeVerificationStep(step)
} else if (isEnumValue([UniversalActions], step)) {
executeUniversalAction(step)
} else if (isEnumValue([ModActions], step)) {
executeModSteps(step)
} else if (isEnumValue([ModVerifications], step)) {
executeVerifyModStep(step)
steps.forEach(item => {
if (isEnumValue([SetupActions], item.step)) {
executeSetupSteps(item)
} else if (isEnumValue([SetupVerifications], item.step)) {
executeVerificationStep(item)
} else if (isEnumValue([UniversalActions], item.step)) {
executeUniversalAction(item)
} else if (isEnumValue([ModActions], item.step)) {
executeModSteps(item)
} else if (isEnumValue([ModVerifications], item.step)) {
executeVerifyModStep(item)

Check warning on line 56 in protocol-designer/cypress/support/StepExecution.ts

View check run for this annotation

Codecov / codecov/patch

protocol-designer/cypress/support/StepExecution.ts#L46-L56

Added lines #L46 - L56 were not covered by tests
}
})
}

0 comments on commit f48c18d

Please sign in to comment.