1
0
Fork 0

remove unused types

This commit is contained in:
ssube 2021-07-21 00:01:01 -05:00
parent abe1807433
commit 721cd8f3eb
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
2 changed files with 3 additions and 7 deletions

View File

@ -8,7 +8,6 @@
"chai": "^4.3.4",
"chai-as-promised": "^7.1.1",
"esm": "^3.2.25",
"fast-check": "^2.17.0",
"mocha": "<9.0.0",
"nyc": "^15.1.0",
"sinon": "^11.1.1",
@ -17,6 +16,7 @@
"typescript": "^4.3.5"
},
"dependencies": {
"fast-check": "^2.17.0",
"tslib": "^2.3.0"
}
}

View File

@ -1,11 +1,7 @@
import { Arbitrary, check, property } from 'fast-check';
export type TestDone = () => Promise<void>;
export type Test<T> = (this: Mocha.Context, args: T) => Promise<void>;
export type WrappedTest<T> = (this: Mocha.Context) => Promise<void>;
export type WrappedCheck<T> = (t: T) => boolean;
export type WrappedIt<T> = (name: string, test: WrappedCheck<T>) => void;
export type Check<T> = (this: Mocha.Context, t: T) => boolean;
export type WrappedIt<T> = (name: string, check: Check<T>) => void;
export type Suite<T> = (it: WrappedIt<T>) => void;
export function over<T>(name: string, strategy: Arbitrary<T>, suite: Suite<T>): void {