Skip to content

Commit f034e9f

Browse files
committed
fix: Fixes non-deterministic test
1 parent 0e00ee6 commit f034e9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

__tests__/acceptance/eslint-with-todo-formatter-test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,7 +1266,7 @@ describe('eslint with todo formatter', function () {
12661266
let result = await runBin();
12671267

12681268
// without converting to todos, we should have errors
1269-
expect(result.stdout.match(/\s*\d*:\d*\s*error.*/g) || []).toHaveLength(7);
1269+
expect(result.stdout.match(/\s*\d*:\d*\s*error.*/gm) || []).toHaveLength(7);
12701270

12711271
result = await runBin({
12721272
env: {
@@ -1275,7 +1275,7 @@ describe('eslint with todo formatter', function () {
12751275
});
12761276

12771277
// after converting to todos, we should have no errors
1278-
expect(result.stdout.match(/\s*\d*:\d*\s*error.*/g) || []).toHaveLength(0);
1278+
expect(result.stdout.match(/\s*\d*:\d*\s*error.*/gm) || []).toHaveLength(0);
12791279

12801280
result = await runBin({
12811281
env: {

0 commit comments

Comments
 (0)