Skip to content

Commit

Permalink
fix(scan): define the medium severity range properly (#77)
Browse files Browse the repository at this point in the history
close #76
  • Loading branch information
derevnjuk authored May 9, 2022
1 parent 0e8cc4e commit 7b40995
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/scan/src/Scan.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ describe('Scan', () => {
issuesBySeverity: [{ number: 1, type: Severity.LOW }]
});

await scan.expect(Severity.MEDIUM);
await scan.expect(Severity.LOW);

verify(mockedScans.getScan(id)).twice();
});
Expand Down
2 changes: 1 addition & 1 deletion packages/scan/src/models/Severity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const severityRanges = new Map(
Object.values(Severity).map(severity => {
switch (severity) {
case Severity.MEDIUM:
return [severity, [Severity.MEDIUM, Severity.LOW]];
return [severity, [Severity.MEDIUM, Severity.HIGH]];
case Severity.HIGH:
return [severity, [Severity.HIGH]];
case Severity.LOW:
Expand Down

0 comments on commit 7b40995

Please sign in to comment.