Skip to content

Instantly share code, notes, and snippets.

@muratg
Created November 28, 2012 19:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save muratg/4163650 to your computer and use it in GitHub Desktop.
Save muratg/4163650 to your computer and use it in GitHub Desktop.
TypeScript declarations (typings) file for Mocha JavaScript testing framework
// mocha.d.ts
//
// Mocha (c) 2011-2012 TJ Holowaychuk <tj@vision-media.ca>
//
// Hand written by Murat Girgin
// based on http://visionmedia.github.com/mocha/
//
declare var describe: {
(testDescription: string, f: Function): any;
only(testDescription: string, f: Function): any;
skip(testDescription: string, f: Function): any;
};
declare var it: {
(testDescription: string, f?: Function, done?: Function): any;
only(testDescription: string, f?: Function, done?: Function): any;
skip(testDescription: string, f?: Function, done?: Function): any;
};
declare function before(f: Function, done?: Function): any;
declare function after(f: Function, done?: Function): any;
declare function beforeEach(f: Function, done?: Function): any;
declare function afterEach(f: Function, done?: Function): any;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment