Skip to content

Commit 3fcaf65

Browse files
authored
test: use regex when asserting table output (#1203)
1 parent 217f445 commit 3fcaf65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/nuts/tracking/forceIgnore.nut.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,9 @@ describe('forceignore changes', () => {
193193
}).shellOutput.stdout;
194194

195195
expect(output).to.include('Will Deploy [1] files.');
196-
expect(output).to.include('ApexClass UnIgnoreTest');
196+
expect(output).to.match(/ApexClass\s+UnIgnoreTest/);
197197
expect(output).to.not.include("These files won't deploy because they're ignored by your .forceignore file.");
198-
expect(output).to.not.include('ApexClass IgnoreTest');
198+
expect(output).to.not.match(/ApexClass\s+IgnoreTest/);
199199
});
200200
});
201201
});

0 commit comments

Comments
 (0)