update mocha definitions

This commit is contained in:
ashwinr
2013-08-19 16:01:33 -04:00
parent eba1bc3c13
commit fd5c5d0f38

11
mocha/mocha.d.ts vendored
View File

@@ -3,6 +3,17 @@
// Definitions by: Kazi Manzur Rashid <https://github.com/kazimanzurrashid/>
// DefinitelyTyped: https://github.com/borisyankov/DefinitelyTyped
interface Mocha {
setup(options: MochaSetupOptions);
run(callback: () => void);
}
interface MochaSetupOptions {
slow: number;
timeout: number;
ui: string;
}
declare var describe : {
(description: string, spec: () => void): void;
only(description: string, spec: () => void): void;