Add suiteRepeat test util

This commit is contained in:
Rob Lourens
2021-05-19 10:51:19 -07:00
parent c936add601
commit 0d33806803

View File

@@ -143,3 +143,9 @@ export function testRepeat(n: number, description: string, callback: (this: any)
test(`${description} (iteration ${i})`, callback);
}
}
export function suiteRepeat(n: number, description: string, callback: (this: any) => any): void {
for (let i = 0; i < n; i++) {
suite(`${description} (iteration ${i})`, callback);
}
}