Skip to content
This repository was archived by the owner on Jan 13, 2024. It is now read-only.

Commit 58f81cf

Browse files
committedMay 8, 2019
adjust test-50-may-exclude to node 12
1 parent 9121a16 commit 58f81cf

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed
 

‎test/test-50-may-exclude/test-x-index.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,17 @@ try {
5252

5353
console.log([
5454

55-
error1.message,
55+
error1.message.split('\n')[0],
5656
error1.code,
57-
JSON.stringify(error1),
58-
error2.message,
57+
JSON.stringify(Object.assign(error1, { requireStack: undefined })),
58+
error2.message.split('\n')[0],
5959
error2.code,
60-
JSON.stringify(error2),
61-
error3.message,
60+
JSON.stringify(Object.assign(error2, { requireStack: undefined })),
61+
error3.message.split('\n')[0],
6262
error3.code,
63-
JSON.stringify(error3),
64-
error4.message,
63+
JSON.stringify(Object.assign(error3, { requireStack: undefined })),
64+
error4.message.split('\n')[0],
6565
error4.code,
66-
JSON.stringify(error4)
66+
JSON.stringify(Object.assign(error4, { requireStack: undefined }))
6767

6868
].join('\n'));

0 commit comments

Comments
 (0)
This repository has been archived.