forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mocha-phantomjs.d.ts
37 lines (31 loc) · 856 Bytes
/
mocha-phantomjs.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Type definitions for mocha-phantomjs v3.5.0
// Project: http://metaskills.net/mocha-phantomjs/
// Definitions by: Erik Schierboom <https://github.com/ErikSchierboom>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
interface MochaPhantomJsWindowOptions extends Window {
env: any;
failures: number;
ended: boolean;
started: boolean;
run(): void;
}
interface Window {
mochaPhantomJS(): MochaPhantomJsWindowOptions;
}
interface MochaPhantomJSOptions {
headers?: any;
cookies?: any[];
viewportSize?: number;
timeout?: number;
file?: string;
}
interface MochaPhantomJS {
url: string;
columns: number;
mochaStartWait: number;
startTime: Date;
output: any;
run(): void;
customizeMocha(options: MochaPhantomJSOptions): void;
}
declare var mochaPhantomJS: MochaPhantomJS;