Skip to content

Commit

Permalink
refactor: reuse surroundingLinesRadius variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Platonn committed Oct 3, 2024
1 parent c7d8e7f commit 5d61fb0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions projects/ssr-tests/src/utils/log.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,9 @@ function validateJsonsInLogs(rawLogs: string[]): void {
Please make sure to build Spartacus SSR in prod mode prior to running SSR Tests
to get single line JSONs that can be parsed in tests.
For specific context, see 5 raw log lines below (2 previous lines, current line, 2 next lines):
For specific context, see ${surroundingLinesRadius * 2 + 1} raw log lines below (previous ${surroundingLinesRadius} lines, current line, next ${surroundingLinesRadius} lines):
\`\`\`
${surroundingLines.join('\n')}
\`\`\`
For general context, see full raw logs below:
\`\`\`
${rawLogs.join('\n')}
\`\`\`
`
);
Expand Down

0 comments on commit 5d61fb0

Please sign in to comment.