3
3
// Definitions by: [RomanoLindano]
4
4
// Definitions: https://github.com/borisyankov/DefinitelyTyped
5
5
6
- declare module angularScenario {
7
- export interface AngularModel {
6
+ declare module ng {
7
+ export interface IAngularStatic {
8
8
scenario : any ;
9
9
}
10
+ }
11
+
12
+ declare module angularScenario {
10
13
11
14
export interface RunFunction {
12
15
( functionToRun : any ) : any ;
@@ -46,25 +49,25 @@ declare module angularScenario {
46
49
reload ( ) : void ;
47
50
window ( ) : testWindow ;
48
51
location ( ) : testLocation ;
49
- }
50
-
52
+ }
53
+
51
54
export interface Matchers {
52
55
toEqual ( value : any ) : void ;
53
- toBe ( value : any ) : void ;
54
- toBeDefined ( ) : void ;
55
- toBeTruthy ( ) : void ;
56
- toBeFalsy ( ) : void ;
57
- toMatch ( regularExpression : any ) : void ;
58
- toBeNull ( ) : void ;
56
+ toBe ( value : any ) : void ;
57
+ toBeDefined ( ) : void ;
58
+ toBeTruthy ( ) : void ;
59
+ toBeFalsy ( ) : void ;
60
+ toMatch ( regularExpression : any ) : void ;
61
+ toBeNull ( ) : void ;
59
62
toContain ( value : any ) : void ;
60
- toBeLessThan ( value : any ) : void ;
61
- toBeGreaterThan ( value : any ) : void ;
63
+ toBeLessThan ( value : any ) : void ;
64
+ toBeGreaterThan ( value : any ) : void ;
62
65
}
63
66
64
- export interface CustomMatchers extends Matchers {
67
+ export interface CustomMatchers extends Matchers {
65
68
}
66
69
67
- export interface Expect extends CustomMatchers {
70
+ export interface Expect extends CustomMatchers {
68
71
not ( ) : angularScenario . CustomMatchers ;
69
72
}
70
73
@@ -92,12 +95,12 @@ declare module angularScenario {
92
95
export interface Select {
93
96
option ( value : any ) : any ;
94
97
option ( ...listOfValues : any [ ] ) : any ;
95
- }
98
+ }
96
99
97
100
export interface Element {
98
101
count ( ) : Future ;
99
102
click ( ) : any ;
100
- query ( callback : ( selectedDOMElements : any [ ] , callbackWhenDone : ( objNull : any , futureValue : any ) => any ) => any ) : any ;
103
+ query ( callback : ( selectedDOMElements : any [ ] , callbackWhenDone : ( objNull : any , futureValue : any ) => any ) => any ) : any ;
101
104
val ( ) : Future ;
102
105
text ( ) : Future ;
103
106
html ( ) : Future ;
@@ -111,7 +114,7 @@ declare module angularScenario {
111
114
scrollLeft ( ) : Future ;
112
115
scrollTop ( ) : Future ;
113
116
offset ( ) : Future ;
114
-
117
+
115
118
val ( value : any ) : void ;
116
119
text ( value : any ) : void ;
117
120
html ( value : any ) : void ;
@@ -154,4 +157,4 @@ declare function input(ngModelBinding: string): angularScenario.Input;
154
157
declare function repeater ( selector : string , repeaterDescription ?: string ) : angularScenario . Repeater ;
155
158
declare function select ( ngModelBinding : string ) : angularScenario . Select ;
156
159
declare function element ( selector : string , elementDescription ?: string ) : angularScenario . Element ;
157
- declare var angular : angularScenario . AngularModel ;
160
+ declare var angular : ng . IAngularStatic ;
0 commit comments