From 09c4096c49d64d9893b4e8e2a4614dfabbee44ae Mon Sep 17 00:00:00 2001 From: Lam Wei Li Date: Mon, 25 Jul 2022 00:25:27 +0800 Subject: [PATCH] test: adjusted regexp for stacktrace for Node.js <=10 --- test/tap/layouts-test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/tap/layouts-test.js b/test/tap/layouts-test.js index e925bf5..8a77b48 100644 --- a/test/tap/layouts-test.js +++ b/test/tap/layouts-test.js @@ -121,7 +121,7 @@ test('log4js layouts', (batch) => { }, }, }), - /at (Test\.batch\.test\.t|Test\.)\s+\((.*)test[\\/]tap[\\/]layouts-test\.js:\d+:\d+\)/, + /at (Test\.batch\.test(\.t)?|Test\.)\s+\((.*)test[\\/]tap[\\/]layouts-test\.js:\d+:\d+\)/, 'regexp did not return a match - should print the stacks of a passed error objects' );