UNPKG

918 BTypeScriptView Raw
1// Type definitions for mocha-phantomjs v3.5.0
2// Project: http://metaskills.net/mocha-phantomjs/
3// Definitions by: Erik Schierboom <https://github.com/ErikSchierboom>
4// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
6interface MochaPhantomJsWindowOptions extends Window {
7 env: any;
8 failures: number;
9 ended: boolean;
10 started: boolean;
11 run(): void;
12}
13
14interface Window {
15 mochaPhantomJS(): MochaPhantomJsWindowOptions;
16}
17
18interface MochaPhantomJSOptions {
19 headers?: any;
20 cookies?: any[] | undefined;
21 viewportSize?: number | undefined;
22 timeout?: number | undefined;
23 file?: string | undefined;
24}
25
26interface MochaPhantomJS {
27 url: string;
28 columns: number;
29 mochaStartWait: number;
30 startTime: Date;
31 output: any;
32
33 run(): void;
34 customizeMocha(options: MochaPhantomJSOptions): void;
35}
36
37declare var mochaPhantomJS: MochaPhantomJS;