mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
Fixing MochaInstance.Run argument to take a function that has a number instead of an array.
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
Vendored
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user