Skip to content

Commit

Permalink
Fixed unit tests 🫖
Browse files Browse the repository at this point in the history
  • Loading branch information
01taylop committed Jul 19, 2024
1 parent 09072c1 commit eacedaa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/linters/__tests__/eslint.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,10 @@ describe('eslint', () => {
}],
'utils.ts': [{
...commonResult,
position: '1:1',
position: '0',
message: 'Test core error',
rule: 'core-error',
severity: 'X',
severity: '!',
}],
},
summary: {
Expand Down
2 changes: 1 addition & 1 deletion src/linters/eslint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const lintFiles = async (files: Array<string>): Promise<LintReport> => {
}

reportResults[file].push(formatResult({
column,
column: line ? column : undefined,
lineNumber: line || 0,
message: message.trim(),
rule: ruleId || 'core-error',
Expand Down

0 comments on commit eacedaa

Please sign in to comment.