Fixing MochaInstance.Run argument to take a function that has a number instead of an array.

This commit is contained in:
Jason Tremper
2014-12-14 17:12:15 -05:00
parent 44729fa526
commit 19915b733f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -218,7 +218,7 @@ function test_require_fluentParams() {
function test_run_withOnComplete() {
var instance = new MochaDef();
instance.run((failures: any[]): void => {
instance.run((failures: number): void => {
console.log(failures);
});
}
+1 -1
View File
@@ -140,7 +140,7 @@ declare module "mocha" {
asyncOnly(value: boolean): MochaInstance;
noHighlighting(value: boolean): MochaInstance;
run(onComplete?: (failures: any[]) => void): void;
run(onComplete?: (failures: number) => void): void;
}
export = MochaInstance;