UNPKG

673 BTypeScriptView Raw
1interface MochaPhantomJsWindowOptions extends Window {
2 env: any;
3 failures: number;
4 ended: boolean;
5 started: boolean;
6 run(): void;
7}
8
9interface Window {
10 mochaPhantomJS(): MochaPhantomJsWindowOptions;
11}
12
13interface MochaPhantomJSOptions {
14 headers?: any;
15 cookies?: any[] | undefined;
16 viewportSize?: number | undefined;
17 timeout?: number | undefined;
18 file?: string | undefined;
19}
20
21interface MochaPhantomJS {
22 url: string;
23 columns: number;
24 mochaStartWait: number;
25 startTime: Date;
26 output: any;
27
28 run(): void;
29 customizeMocha(options: MochaPhantomJSOptions): void;
30}
31
32declare var mochaPhantomJS: MochaPhantomJS;