From 6967071816a259ac54f561afc705eb1158f4f5cb Mon Sep 17 00:00:00 2001 From: Kazi Manzur Rashid Date: Fri, 5 Apr 2013 09:22:58 +0600 Subject: [PATCH] Included Mocha definition. --- mocha/mocha.d.ts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 mocha/mocha.d.ts diff --git a/mocha/mocha.d.ts b/mocha/mocha.d.ts new file mode 100644 index 0000000000..55b20cecc8 --- /dev/null +++ b/mocha/mocha.d.ts @@ -0,0 +1,24 @@ +declare var describe : { + (description: string, spec: () => void): void; + only(description: string, spec: () => void): void; + skip(description: string, spec: () => void): void; + timeout(ms: number); +} + +declare var it: { + (expectation: string, assertion?: () => void): void; + (expectation: string, assertion?: (done: () => void) => void): void; + only(expectation: string, assertion?: () => void): void; + only(expectation: string, assertion?: (done: () => void) => void): void; + skip(expectation: string, assertion?: () => void): void; + skip(expectation: string, assertion?: (done: () => void) => void): void; + timeout(ms: number); +}; + +declare function beforeEach(action: () => void): void; + +declare function beforeEach(action: (done: () => void) => void): void; + +declare function afterEach(action: () => void): void; + +declare function afterEach(action: (done: () => void) => void): void; \ No newline at end of file