@types/mocha
Advanced tools
Comparing version 2.2.47 to 2.2.48
@@ -150,2 +150,3 @@ // Type definitions for mocha 2.2.5 | ||
timeout(n: number | string): this; | ||
duration?: number; | ||
} | ||
@@ -174,5 +175,26 @@ | ||
interface IStats { | ||
suites: number; | ||
tests: number; | ||
passes: number; | ||
pending: number; | ||
failures: number; | ||
start?: Date; | ||
end?: Date; | ||
duration?: Date; | ||
} | ||
/** Partial interface for Mocha's `Runner` class. */ | ||
interface IRunner { } | ||
interface IRunner { | ||
stats?: IStats; | ||
started: boolean; | ||
suite: ISuite; | ||
total: number; | ||
failures: number; | ||
grep: (re: string, invert: boolean) => this; | ||
grepTotal: (suite: ISuite) => number; | ||
globals: (arr: ReadonlyArray<string>) => this | string[]; | ||
abort: () => this; | ||
run: (fn?: (failures: number) => void) => this; | ||
} | ||
@@ -196,9 +218,3 @@ interface IContextDefinition { | ||
export class Base { | ||
stats: { | ||
suites: number; | ||
tests: number; | ||
passes: number; | ||
pending: number; | ||
failures: number; | ||
}; | ||
stats: IStats; | ||
@@ -205,0 +221,0 @@ constructor(runner: IRunner); |
{ | ||
"name": "@types/mocha", | ||
"version": "2.2.47", | ||
"version": "2.2.48", | ||
"description": "TypeScript definitions for mocha", | ||
@@ -35,4 +35,4 @@ "license": "MIT", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "6efa63f353a3b8d4c11807aafe282592073889354d6ff1b0f8c6ae875cc5b5a5", | ||
"typesPublisherContentHash": "27056d243d0717a72aece52a5c80847a49c9f9c5882241963aff6bfed2ee4a93", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Tue, 23 Jan 2018 20:05:42 GMT | ||
* Last updated: Wed, 31 Jan 2018 21:25:50 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: Mocha, after, afterEach, before, beforeEach, context, describe, it, mocha, run, setup, specify, suite, suiteSetup, suiteTeardown, teardown, test, xdescribe, xit |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12098
223