Skip to content

Commit

Permalink
chore: simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT authored and Shinigami92 committed Aug 30, 2024
1 parent ca7657c commit 2b5da93
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions test/support/seeded-runs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,17 +176,12 @@ class TestGenerator<
* @param method The name of the method.
* @param repetitions The number of repetitions to run.
*/
// TODO @ST-DDT 2024-08-19: https://github.com/typescript-eslint/typescript-eslint/issues/9828
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
itRepeated<TMethodName extends NoArgsMethodOf<TModule>>(
method: TMethodName,
repetitions: number
): this {
itRepeated(method: NoArgsMethodOf<TModule>, repetitions: number): this {
this.expectNotTested(method);
vi_it(method, () =>
this.callAndVerify(
method,
[] as unknown as Parameters<TModule[TMethodName]>,
[] as unknown as Parameters<TModule[NoArgsMethodOf<TModule>]>,
repetitions
)
);
Expand Down

0 comments on commit 2b5da93

Please sign in to comment.