From 58f81cfdb7286fb011926fcad7d13f86da8bf99b Mon Sep 17 00:00:00 2001 From: Igor Klopov Date: Wed, 8 May 2019 23:35:16 +0300 Subject: [PATCH] adjust test-50-may-exclude to node 12 --- test/test-50-may-exclude/test-x-index.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/test-50-may-exclude/test-x-index.js b/test/test-50-may-exclude/test-x-index.js index 7cb37c387..3d8973d95 100644 --- a/test/test-50-may-exclude/test-x-index.js +++ b/test/test-50-may-exclude/test-x-index.js @@ -52,17 +52,17 @@ try { console.log([ - error1.message, + error1.message.split('\n')[0], error1.code, - JSON.stringify(error1), - error2.message, + JSON.stringify(Object.assign(error1, { requireStack: undefined })), + error2.message.split('\n')[0], error2.code, - JSON.stringify(error2), - error3.message, + JSON.stringify(Object.assign(error2, { requireStack: undefined })), + error3.message.split('\n')[0], error3.code, - JSON.stringify(error3), - error4.message, + JSON.stringify(Object.assign(error3, { requireStack: undefined })), + error4.message.split('\n')[0], error4.code, - JSON.stringify(error4) + JSON.stringify(Object.assign(error4, { requireStack: undefined })) ].join('\n'));