Skip to content

Commit

Permalink
remove runs of multiple spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
DMedina6 committed Nov 22, 2024
1 parent 0b74584 commit ad7cc27
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 @@ -75,7 +75,7 @@ describe('Test validate threshold - using inline values', () => {
// ' 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(/\n/gi,' ').replaceAll(/\t/gi,' ').trim()
const stderrFormatted = stderr.replaceAll(/\n/gi,' ').replaceAll(/\t/gi,' ').replaceAll(/\s+/g, ' ').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 ad7cc27

Please sign in to comment.