From e4043e8133292e1534d1f50980a949dd7592641a Mon Sep 17 00:00:00 2001 From: Mike Donnalley Date: Wed, 30 Oct 2024 10:23:20 -0600 Subject: [PATCH] test: use regex when asserting table output --- test/nuts/tracking/forceIgnore.nut.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/nuts/tracking/forceIgnore.nut.ts b/test/nuts/tracking/forceIgnore.nut.ts index 75f052e6..7a075c7e 100644 --- a/test/nuts/tracking/forceIgnore.nut.ts +++ b/test/nuts/tracking/forceIgnore.nut.ts @@ -193,9 +193,9 @@ describe('forceignore changes', () => { }).shellOutput.stdout; expect(output).to.include('Will Deploy [1] files.'); - expect(output).to.include('ApexClass UnIgnoreTest'); + expect(output).to.match(/ApexClass\s+UnIgnoreTest/); expect(output).to.not.include("These files won't deploy because they're ignored by your .forceignore file."); - expect(output).to.not.include('ApexClass IgnoreTest'); + expect(output).to.not.match(/ApexClass\s+IgnoreTest/); }); }); });