From e85684bd1659d5ac516a5a262a3e75c268625bcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Matte?= Date: Mon, 5 Dec 2022 22:41:37 -0500 Subject: [PATCH] Rename error --- lib/metaltest.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/metaltest.js b/lib/metaltest.js index c4f0192..d8e90a7 100644 --- a/lib/metaltest.js +++ b/lib/metaltest.js @@ -37,11 +37,11 @@ const metaltest = (title) => { success++ notify(reporters, 'success', test) } - catch (e) { + catch (error) { fail++ - testFail.push(Object.assign({}, test, { error: e })) - notify(reporters, 'fail', test, e) + testFail.push(Object.assign({}, test, { error })) + notify(reporters, 'fail', test, error) } }