Comparing version 1.1.0 to 1.1.1
@@ -48,5 +48,5 @@ /*------------------------------------- | ||
if (fails.length == 1) | ||
if (totalErrors == 1) | ||
console.log(chalk.bold.yellow(`One error occured during the test ${name}${sad()}\n`)) | ||
else if (fails.length > 1) | ||
else if (totalErrors > 1) | ||
console.log(chalk.bold.yellow(`${fails.length} errors occured during the test ${name}${sad()}\n`)) | ||
@@ -75,3 +75,2 @@ else | ||
currentStage = '' | ||
fails.length = 0 | ||
totalErrors = 0 | ||
@@ -98,2 +97,3 @@ stageError = false | ||
fails.length = 0 | ||
totalErrors++ | ||
} | ||
@@ -100,0 +100,0 @@ else |
{ | ||
"name": "fartest", | ||
"version": "1.1.0", | ||
"description": "A minimal, colorful and enjoyable test library for small applications", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: you don't test a test library!\" && exit 1" | ||
"author": { | ||
"name": "Lepzulnag" | ||
}, | ||
"bundleDependencies": false, | ||
"dependencies": { | ||
"chalk": "^2.4.2" | ||
}, | ||
"deprecated": false, | ||
"description": "A minimal, colorful and enjoyable test library for small applications", | ||
"keywords": [ | ||
@@ -20,4 +19,9 @@ "test", | ||
], | ||
"author": "Lepzulnag", | ||
"license": "ISC" | ||
"license": "ISC", | ||
"main": "index.js", | ||
"name": "fartest", | ||
"scripts": { | ||
"test": "echo \"Error: you don't test a test library!\" && exit 1" | ||
}, | ||
"version": "1.1.1" | ||
} |
5089