From 5af9dc92a8d99fde618c4ab407b09f19f7f5eb9d Mon Sep 17 00:00:00 2001 From: George M Dias Date: Fri, 22 Nov 2024 13:28:42 -0600 Subject: [PATCH] fixed threshold test output Signed-off-by: George M Dias --- test/commands/validate/threshold.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/commands/validate/threshold.test.ts b/test/commands/validate/threshold.test.ts index 1603b795a..39fa225e7 100644 --- a/test/commands/validate/threshold.test.ts +++ b/test/commands/validate/threshold.test.ts @@ -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') }) })