mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 21:10:23 +00:00
Describe loadFiles method and suite property (#24982)
* Document loadFiles method * Document suite property * Update index.d.ts
This commit is contained in:
committed by
Ryan Cavanaugh
parent
fdcf6d8469
commit
f8e09cf492
Vendored
+4
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user