mocha: reporter() method takes optional second parameter (#23026)

This commit is contained in:
smhxx
2018-01-23 13:58:45 -06:00
committed by Andy
parent 7fd0895663
commit da85ce8409

View File

@@ -86,9 +86,9 @@ declare class Mocha {
bail(value?: boolean): Mocha;
addFile(file: string): Mocha;
/** Sets reporter by name, defaults to "spec". */
reporter(name: string): Mocha;
reporter(name: string, reporterOptions?: any): Mocha;
/** Sets reporter constructor, defaults to mocha.reporters.Spec. */
reporter(reporter: ReporterConstructor): Mocha;
reporter(reporter: ReporterConstructor, reporterOptions?: any): Mocha;
ui(value: string): Mocha;
grep(value: string): Mocha;
grep(value: RegExp): Mocha;