@locustjs/test 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.cjs.js CHANGED
@@ -383,9 +383,7 @@ class TestRunner {
383
383
  for (let r of this.results) {
384
384
  time += r.time;
385
385
  }
386
- const text = 'Finished.' + '\n' + (this.failed > 0 ? `\x1b[${ConsoleColors.ForeColor.Red}m ${this.failed} tests failed` : '0 tests failed') + ConsoleColors.Modifier.Reset;
387
- ', ' + (this.passed > 0 ? `\x1b[${ConsoleColors.ForeColor.Green}m ${this.passed} tests passed` : '0 tests passed') + ConsoleColors.Modifier.Reset;
388
- '\n' + `Tests: ${this.passed + this.failed}` + '\n' + `Time: ${time / 1000} sec` + '\n';
386
+ const text = 'Finished.' + '\n' + (this.failed > 0 ? `\x1b[${ConsoleColors.ForeColor.Red}m ${this.failed} tests failed` : '0 tests failed') + ConsoleColors.Modifier.Reset + ', ' + (this.passed > 0 ? `\x1b[${ConsoleColors.ForeColor.Green}m ${this.passed} tests passed` : '0 tests passed') + ConsoleColors.Modifier.Reset + '\n' + `Tests: ${this.passed + this.failed}` + '\n' + `Time: ${time / 1000} sec` + '\n';
389
387
  console.log(text);
390
388
  }
391
389
  }
package/index.esm.js CHANGED
@@ -275,9 +275,9 @@ class TestRunner {
275
275
 
276
276
  const text = 'Finished.' +
277
277
  '\n' +
278
- (this.failed > 0 ? `\x1b[${ConsoleColors.ForeColor.Red}m ${this.failed} tests failed` : '0 tests failed') + ConsoleColors.Modifier.Reset
278
+ (this.failed > 0 ? `\x1b[${ConsoleColors.ForeColor.Red}m ${this.failed} tests failed` : '0 tests failed') + ConsoleColors.Modifier.Reset +
279
279
  ', ' +
280
- (this.passed > 0 ? `\x1b[${ConsoleColors.ForeColor.Green}m ${this.passed} tests passed` : '0 tests passed') + ConsoleColors.Modifier.Reset
280
+ (this.passed > 0 ? `\x1b[${ConsoleColors.ForeColor.Green}m ${this.passed} tests passed` : '0 tests passed') + ConsoleColors.Modifier.Reset +
281
281
  '\n' +
282
282
  `Tests: ${this.passed + this.failed}` +
283
283
  '\n' +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@locustjs/test",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "This library provides a simple test runner.",
5
5
  "main": "index.cjs.js",
6
6
  "module": "index.esm.js",