@locustjs/test 1.1.3 → 1.1.4
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 +2 -2
- package/index.esm.js +2 -2
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -624,7 +624,7 @@ class TestRunner {
|
|
|
624
624
|
time += result.time;
|
|
625
625
|
}
|
|
626
626
|
if (detailed && this._errors.length) {
|
|
627
|
-
console.log('
|
|
627
|
+
console.log('Errors:');
|
|
628
628
|
for (let error of this._errors) {
|
|
629
629
|
if (error.index !== undefined) {
|
|
630
630
|
console.log(`${error.index}. ${error.test}: ${error.err.innerException.toString()}`);
|
|
@@ -641,7 +641,7 @@ class TestRunner {
|
|
|
641
641
|
results: this._results,
|
|
642
642
|
errors: this._errors
|
|
643
643
|
});
|
|
644
|
-
if (filename
|
|
644
|
+
if (filename == null) {
|
|
645
645
|
const d = new Date();
|
|
646
646
|
const year = d.getFullYear().toString().padStart(4, '0');
|
|
647
647
|
const month = (d.getMonth() + 1).toString().padStart(2, '0');
|
package/index.esm.js
CHANGED
|
@@ -430,7 +430,7 @@ class TestRunner {
|
|
|
430
430
|
}
|
|
431
431
|
|
|
432
432
|
if (detailed && this._errors.length) {
|
|
433
|
-
console.log('
|
|
433
|
+
console.log('Errors:');
|
|
434
434
|
|
|
435
435
|
for (let error of this._errors) {
|
|
436
436
|
if (error.index !== undefined) {
|
|
@@ -459,7 +459,7 @@ class TestRunner {
|
|
|
459
459
|
errors: this._errors
|
|
460
460
|
});
|
|
461
461
|
|
|
462
|
-
if (filename
|
|
462
|
+
if (filename == null) {
|
|
463
463
|
const d = new Date();
|
|
464
464
|
|
|
465
465
|
const year = d.getFullYear().toString().padStart(4, '0');
|