Skip to content

Commit

Permalink
fixed threshold test output - 4
Browse files Browse the repository at this point in the history
Signed-off-by: George M Dias <GDIAS@MITRE.ORG>
  • Loading branch information
georgedias committed Nov 22, 2024
1 parent 04ac8b6 commit 5a4189f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/commands/validate/threshold.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ describe('Test validate threshold - using inline values', () => {
'--templateInline', '"{compliance.min: 66}, {passed.critical.min: 0}, {failed.medium.min: 97}"',
])
expect(stdout).to.equal('')
expect(stderr.replaceAll(/\r\n/gi, '\n').trim()).to.equal('Error: failed.medium.min: Threshold not met. Number of received total failed controls (87) is less than your set threshold for the number of failed controls (97)')
expect(stderr.replaceAll(/\r\n/gi, ' ').trim()).to.equal('Error: failed.medium.min: Threshold not met. Number of received total failed controls (87) is less than your set threshold for the number of failed controls (97)')
})
})

0 comments on commit 5a4189f

Please sign in to comment.