Skip to content

Commit

Permalink
fixed threshold test output
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 41ad577 commit 5af9dc9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/commands/validate/threshold.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ 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).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)\n')
expect(stderr).to.equal(' Error: failed.medium.min: Threshold not met. Number of received total\n' +
' failed controls (87) is less than your set threshold for the number of\n' +
' failed controls (97)\n')
})
})

0 comments on commit 5af9dc9

Please sign in to comment.