From c8ac9402421110a27ac4a3e5387ea5f968c4c031 Mon Sep 17 00:00:00 2001 From: Kazi Manzur Rashid Date: Sat, 6 Apr 2013 10:57:38 +0600 Subject: [PATCH] Added the missing before and after hook. --- mocha/mocha.d.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/mocha/mocha.d.ts b/mocha/mocha.d.ts index 55b20cecc..b722277c3 100644 --- a/mocha/mocha.d.ts +++ b/mocha/mocha.d.ts @@ -15,10 +15,19 @@ declare var it: { timeout(ms: number); }; +declare function before(action: () => void): void; + +declare function before(action: (done: () => void) => void): void; + +declare function aftet(action: () => void): void; + +declare function after(action: (done: () => void) => void): void; + 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 +declare function afterEach(action: (done: () => void) => void): void; +