Skip to content

Commit

Permalink
test: adjusted regexp for stacktrace for Node.js <=10
Browse files Browse the repository at this point in the history
  • Loading branch information
lamweili committed Jul 24, 2022
1 parent adcc06f commit 09c4096
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/tap/layouts-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ test('log4js layouts', (batch) => {
},
},
}),
/at (Test\.batch\.test\.t|Test\.<anonymous>)\s+\((.*)test[\\/]tap[\\/]layouts-test\.js:\d+:\d+\)/,
/at (Test\.batch\.test(\.t)?|Test\.<anonymous>)\s+\((.*)test[\\/]tap[\\/]layouts-test\.js:\d+:\d+\)/,
'regexp did not return a match - should print the stacks of a passed error objects'
);

Expand Down

0 comments on commit 09c4096

Please sign in to comment.