Skip to content

Commit

Permalink
fix: default startLine value in verifyCli
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy-mitchell committed Mar 14, 2023
1 parent dafe675 commit 630b2e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/test/fixtures/utils.ts
Expand Up @@ -130,7 +130,7 @@ export const verifyCli = (
t: ExecutionContext,
diagnostics: string,
expectedLines: string[],
{startLine}: {startLine: number} = {startLine: 1} // Skip file location.
{startLine = 1}: {startLine: number} // Skip file location.
) => {
// NOTE: If lines are added to the output in the future `startLine` and `endLine` should be adjusted.
const endLine = startLine + expectedLines.length; // Grab diff output only and skip stack trace.
Expand Down

0 comments on commit 630b2e0

Please sign in to comment.