Skip to content

Commit

Permalink
simplify changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bgawkuc committed May 28, 2024
1 parent 6cd6194 commit ae1804a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ const run = () => {
}

if (current.name && current.meanDuration && current.meanCount && timestamp) {
const currentName = current.name as string;
const formattedName = currentName.split(' ').join('-');
const formattedName = (current.name as string).split(' ').join('-');

const renderDurationString = `${GRAPHITE_PATH}.${formattedName}.renderDuration ${current.meanDuration} ${timestamp}`;
const renderCountString = `${GRAPHITE_PATH}.${formattedName}.renderCount ${current.meanCount} ${timestamp}`;
Expand Down
3 changes: 1 addition & 2 deletions workflow_tests/utils/preGenerateTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,7 @@ const getMockFileContent = (workflowName: string, jobs: Record<string, YamlMockJ
let mockStepsContent = `\n// ${jobId.toLowerCase()}`;
const stepMocks: string[] = [];
job.steps.forEach((step) => {
const stepName = step.name as string;
const stepMockName = `${workflowName.toUpperCase()}__${jobId.toUpperCase()}__${stepName
const stepMockName = `${workflowName.toUpperCase()}__${jobId.toUpperCase()}__${(step.name as string)
.replaceAll(' ', '_')
.replaceAll('-', '_')
.replaceAll(',', '')
Expand Down

0 comments on commit ae1804a

Please sign in to comment.