Skip to content

Commit 274d2eb

Browse files
committed
Changed definition of IMochaTest to allow before( function (done) {)) - strangely the optional title in the definition did not work for this case
1 parent 5e169e0 commit 274d2eb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mocha.d.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ declare interface IMochaDescribeWithSkip extends IMochaDescribe {
2121
}
2222

2323
declare interface IMochaTest {
24-
(title?: string, cb?: () => void) : void;
25-
(title?: string, cb?: (done:(err? : Error) => void) => void) : void;
24+
(cb?: () => void) : void;
25+
(cb?: (done:(err? : Error) => void) => void) : void;
26+
(title: string, cb?: () => void) : void;
27+
(title: string, cb?: (done:(err? : Error) => void) => void) : void;
2628
}
2729

2830
declare interface IMochaTestWithSkip extends IMochaTest {

0 commit comments

Comments
 (0)