test: adjusted regexp for stacktrace for Node.js <=10

This commit is contained in:
Lam Wei Li 2022-07-25 00:25:27 +08:00
parent adcc06fb88
commit 09c4096c49
No known key found for this signature in database
GPG Key ID: 90F6ABECF080D7BF

View File

@ -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'
);