Skip to content

Instantly share code, notes, and snippets.

@joeriks
Created October 14, 2012 05:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joeriks/3887505 to your computer and use it in GitHub Desktop.
Save joeriks/3887505 to your computer and use it in GitHub Desktop.
typescript-jasmine
declare module describe {
export function (testDescription: string, f: Function): void;
}
declare module it {
export function (testDescription: string, f: Function): void;
}
declare module runs {
export function (f: Function): void;
}
declare module waits {
export function (milliseconds: number): void;
}
declare module waitsFor {
export function (f: Function, message?: string, timeout?: number): void;
}
declare module expect {
export function (actual: any): expect.InottoBe;
interface Ifnv {
(...value: any[]): void;
}
interface Ifn {
(): void;
}
interface ItoBe {
toBe: Ifnv;
toEqual: Ifnv;
toMatch: Ifnv;
toBeNull: Ifnv;
toBeTruthy: Ifn;
toBeFalsy: Ifn;
toContain: Ifnv;
toBeLessThan: Ifnv;
toBeGreaterThan: Ifnv;
toBeCloseTo: Ifnv;
toHaveBeenCalled: Ifn;
toThrow: Ifn;
toBeDefined: Ifn;
toBeUndefined: Ifn;
}
interface InottoBe extends ItoBe {
not: ItoBe;
}
}
@joeriks
Copy link
Author

joeriks commented Oct 17, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment