only add index when length > 1

This commit is contained in:
Simon Knott 2024-10-08 17:54:26 +02:00
parent d1273ad1b6
commit 87407618d9
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -170,7 +170,7 @@ function createGlobalSetupTask(index: number, length: number): Task<TestRun> {
let teardownHook: any; let teardownHook: any;
let title = 'global setup'; let title = 'global setup';
if (length) if (length > 1)
title += ` #${index}`; title += ` #${index}`;
return { return {