From 64d2eb25451be6c8b7ebafaf2b3cb37a926980d8 Mon Sep 17 00:00:00 2001 From: Sean Sube Date: Tue, 15 Feb 2022 08:37:22 -0600 Subject: [PATCH] lint: remove unused import, rename param --- src/index.ts | 4 ++-- test/TestOver.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index 99d2509..a8a024e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -24,8 +24,8 @@ export interface ErrorParameters extends Parameters { * @throws Error when the property check fails * @public */ -export function over(name: string, strategy: Arbitrary, suite: Suite, parameters: ErrorParameters = {}): void { - describe(name, () => { +export function over(suiteName: string, strategy: Arbitrary, suite: Suite, parameters: ErrorParameters = {}): void { + describe(suiteName, () => { suite((name, test) => { it(name, function (this: Mocha.Context): Promise { const ctx = this; diff --git a/test/TestOver.ts b/test/TestOver.ts index 0b15342..8b0e77b 100644 --- a/test/TestOver.ts +++ b/test/TestOver.ts @@ -1,6 +1,6 @@ import { expect } from 'chai'; import { array, defaultReportMessage, integer, lorem, tuple, uuid } from 'fast-check'; -import { describe, it } from 'mocha'; +import { describe } from 'mocha'; import { over } from '../src/index.js';