Skip to content

Commit

Permalink
test fix var move
Browse files Browse the repository at this point in the history
  • Loading branch information
DMedina6 committed Nov 22, 2024
1 parent 5a4189f commit 9e5ed38
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/commands/validate/threshold.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ 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, ' ').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).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')
//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')
const stderrFormatted = stderr.replaceAll(/\r\n/gi, ' ').trim()
expect(stderrFormatted).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 9e5ed38

Please sign in to comment.