remove unused types
This commit is contained in:
parent
abe1807433
commit
721cd8f3eb
|
@ -8,7 +8,6 @@
|
||||||
"chai": "^4.3.4",
|
"chai": "^4.3.4",
|
||||||
"chai-as-promised": "^7.1.1",
|
"chai-as-promised": "^7.1.1",
|
||||||
"esm": "^3.2.25",
|
"esm": "^3.2.25",
|
||||||
"fast-check": "^2.17.0",
|
|
||||||
"mocha": "<9.0.0",
|
"mocha": "<9.0.0",
|
||||||
"nyc": "^15.1.0",
|
"nyc": "^15.1.0",
|
||||||
"sinon": "^11.1.1",
|
"sinon": "^11.1.1",
|
||||||
|
@ -17,6 +16,7 @@
|
||||||
"typescript": "^4.3.5"
|
"typescript": "^4.3.5"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"fast-check": "^2.17.0",
|
||||||
"tslib": "^2.3.0"
|
"tslib": "^2.3.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,7 @@
|
||||||
import { Arbitrary, check, property } from 'fast-check';
|
import { Arbitrary, check, property } from 'fast-check';
|
||||||
|
|
||||||
export type TestDone = () => Promise<void>;
|
export type Check<T> = (this: Mocha.Context, t: T) => boolean;
|
||||||
export type Test<T> = (this: Mocha.Context, args: T) => Promise<void>;
|
export type WrappedIt<T> = (name: string, check: Check<T>) => 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 Suite<T> = (it: WrappedIt<T>) => void;
|
export type Suite<T> = (it: WrappedIt<T>) => void;
|
||||||
|
|
||||||
export function over<T>(name: string, strategy: Arbitrary<T>, suite: Suite<T>): void {
|
export function over<T>(name: string, strategy: Arbitrary<T>, suite: Suite<T>): void {
|
||||||
|
|
Loading…
Reference in New Issue