Created
October 14, 2012 05:35
-
-
Save joeriks/3887505 to your computer and use it in GitHub Desktop.
typescript-jasmine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://joeriks.com/2012/10/06/testing-typescript-with-chutzpah/