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)}%`)}` } }