Describe loadFiles method and suite property (#24982)

* Document loadFiles method

* Document suite property

* Update index.d.ts
This commit is contained in:
Dmitrii Sorin
2018-04-18 15:33:10 -07:00
committed by Ryan Cavanaugh
parent fdcf6d8469
commit f8e09cf492
+4
View File
@@ -74,6 +74,8 @@ interface ReporterConstructor {
declare class Mocha {
currentTest: Mocha.ITestDefinition;
suite: Mocha.ISuite;
constructor(options?: {
grep?: RegExp;
ui?: string;
@@ -119,6 +121,7 @@ declare class Mocha {
noHighlighting(value: boolean): Mocha;
/** Runs tests and invokes `onComplete()` when finished. */
run(onComplete?: (failures: number) => void): Mocha.IRunner;
loadFiles(cb?: () => any): void;
}
// merge the Mocha class declaration with a module
@@ -168,6 +171,7 @@ declare namespace Mocha {
interface ISuite {
parent: ISuite;
title: string;
suites: ISuite[];
fullTitle(): string;
}