From d695b88332abd8649aea936a5b618df4fe465690 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Matte?= Date: Sun, 4 Dec 2022 16:04:31 -0500 Subject: [PATCH] Remove new lines --- totalreporter.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/totalreporter.js b/totalreporter.js index 86762b6..a1fa817 100644 --- a/totalreporter.js +++ b/totalreporter.js @@ -6,11 +6,9 @@ const totalreporter = () => { return { success: (test) => { totalSuccess++ }, fail: (test, e) => { totalFail++ }, - msg: () => ` -${chalk.redBright(`Total fail: ${totalFail}`)} + msg: () => `${chalk.redBright(`Total fail: ${totalFail}`)} ${chalk.greenBright(`Total sucess: ${totalSuccess}`)} -${chalk.yellowBright(`Ratio ${(totalSuccess / (totalSuccess + totalFail)) * 100}%`)} -` +${chalk.yellowBright(`Ratio ${(totalSuccess / (totalSuccess + totalFail) * 100).toFixed(0)}%`)}` } }