From ad7cc278e8779ec01a9874becf433626d99711a4 Mon Sep 17 00:00:00 2001 From: Daniel Medina Date: Fri, 22 Nov 2024 16:10:15 -0500 Subject: [PATCH] remove runs of multiple spaces --- test/commands/validate/threshold.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/commands/validate/threshold.test.ts b/test/commands/validate/threshold.test.ts index c2e200f6f..f4a70c383 100644 --- a/test/commands/validate/threshold.test.ts +++ b/test/commands/validate/threshold.test.ts @@ -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)') }) })