8000 fix(test): simpler regexp in layouts test · WebHu/log4js-node@fdf9558 · GitHub
[go: up one dir, main page]

Skip to content

Commit fdf9558

Browse files
author
Gareth Jones
committed
fix(test): simpler regexp in layouts test
1 parent d3dbaf5 commit fdf9558

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/tap/layouts-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ test('log4js layouts', (batch) => {
102102
}
103103
}
104104
}),
105-
new RegExp(`${/Error\s+at batch\.test\s+/.source}${/\((.*)test[\\/]tap[\\/]layouts-test\.js/.source}${/:\d+:\d+\)/.source}`), // eslint-disable-line
105+
/Error\s+at batch\.test\s+\((.*)test[\\/]tap[\\/]layouts-test\.js:\d+:\d+\)/,
106106
'regexp did not return a match - should print the stacks of a passed error objects'
107107
);
108108

0 commit comments

Comments
 (0)
0