Installation
npm install --save @types/jasmine-given
Summary
This package contains type definitions for jasmine-given (https://github.com/searls/jasmine-given).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jasmine-given.
index.d.ts
/** Action method that should be called when the async work is complete */
interface DoneFn {
(): void;
/** fails the spec and indicates that it has completed. If the message is an Error, Error.message is used */
fail: (message?: Error | string) => void;
}
declare function Given(func: (done: DoneFn) => void): void;
declare function When(func: (done: DoneFn) => void): void;
declare function Then(func: (done: DoneFn) => void): void;
declare function Then(label: string, func: (done: DoneFn) => void): void;
declare function And(func: (done: DoneFn) => void): void;
declare function Invariant(func: (done: DoneFn) => void): void;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: none
Credits
These definitions were written by Shai Reznik, and Dmitry Efimenko.