@@ -117,7 +117,7 @@ describe('uiStateRef', function() {
117
117
expect ( el . attr ( 'href' ) ) . toBe ( '#/contacts/3' ) ;
118
118
} ) ) ;
119
119
120
- it ( 'should transition states when left-clicked' , inject ( function ( $state , $stateParams , $document , $ q) {
120
+ it ( 'should transition states when left-clicked' , inject ( function ( $state , $stateParams , $q ) {
121
121
expect ( $state . $current . name ) . toEqual ( '' ) ;
122
122
123
123
triggerClick ( el ) ;
@@ -128,7 +128,7 @@ describe('uiStateRef', function() {
128
128
expect ( $stateParams ) . toEqual ( { id : 5 } ) ;
129
129
} ) ) ;
130
130
131
- it ( 'should transition when given a click that contains no data (fake-click)' , inject ( function ( $state , $stateParams , $document , $ q) {
131
+ it ( 'should transition when given a click that contains no data (fake-click)' , inject ( function ( $state , $stateParams , $q ) {
132
132
expect ( $state . current . name ) . toEqual ( '' ) ;
133
133
134
134
triggerClick ( el , {
@@ -145,7 +145,7 @@ describe('uiStateRef', function() {
145
145
expect ( $stateParams ) . toEqual ( { id : 5 } ) ;
146
146
} ) ) ;
147
147
148
- it ( 'should not transition states when ctrl-clicked' , inject ( function ( $state , $stateParams , $document , $ q) {
148
+ it ( 'should not transition states when ctrl-clicked' , inject ( function ( $state , $stateParams , $q ) {
149
149
expect ( $state . $current . name ) . toEqual ( '' ) ;
150
150
triggerClick ( el , { ctrlKey : true } ) ;
151
151
@@ -156,7 +156,7 @@ describe('uiStateRef', function() {
156
156
expect ( $stateParams ) . toEqual ( { id : 5 } ) ;
157
157
} ) ) ;
158
158
159
- it ( 'should not transition states when meta-clicked' , inject ( function ( $state , $stateParams , $document , $ q) {
159
+ it ( 'should not transition states when meta-clicked' , inject ( function ( $state , $stateParams , $q ) {
160
160
expect ( $state . $current . name ) . toEqual ( '' ) ;
161
161
162
162
triggerClick ( el , { metaKey : true } ) ;
@@ -167,7 +167,7 @@ describe('uiStateRef', function() {
167
167
expect ( $stateParams ) . toEqual ( { id : 5 } ) ;
168
168
} ) ) ;
169
169
170
- it ( 'should not transition states when shift-clicked' , inject ( function ( $state , $stateParams , $document , $ q) {
170
+ it ( 'should not transition states when shift-clicked' , inject ( function ( $state , $stateParams , $q ) {
171
171
expect ( $state . $current . name ) . toEqual ( '' ) ;
172
172
173
173
triggerClick ( el , { shiftKey : true } ) ;
@@ -178,7 +178,7 @@ describe('uiStateRef', function() {
178
178
expect ( $stateParams ) . toEqual ( { id : 5 } ) ;
179
179
} ) ) ;
180
180
181
- it ( 'should not transition states when middle-clicked' , inject ( function ( $state , $stateParams , $document , $ q) {
181
+ it ( 'should not transition states when middle-clicked' , inject ( function ( $state , $stateParams , $q ) {
182
182
expect ( $state . $current . name ) . toEqual ( '' ) ;
183
183
184
184
triggerClick ( el , { button : 1 } ) ;
@@ -189,7 +189,7 @@ describe('uiStateRef', function() {
189
189
expect ( $stateParams ) . toEqual ( { id : 5 } ) ;
190
190
} ) ) ;
191
191
192
- it ( 'should not transition states when element has target specified' , inject ( function ( $state , $stateParams , $document , $ q) {
192
+ it ( 'should not transition states when element has target specified' , inject ( function ( $state , $stateParams , $q ) {
193
193
el . attr ( 'target' , '_blank' ) ;
194
194
expect ( $state . $current . name ) . toEqual ( '' ) ;
195
195
@@ -201,7 +201,7 @@ describe('uiStateRef', function() {
201
201
expect ( $stateParams ) . toEqual ( { id : 5 } ) ;
202
202
} ) ) ;
203
203
204
- it ( 'should not transition states if preventDefault() is called in click handler' , inject ( function ( $state , $stateParams , $document , $ q) {
204
+ it ( 'should not transition states if preventDefault() is called in click handler' , inject ( function ( $state , $stateParams , $q ) {
205
205
expect ( $state . $current . name ) . toEqual ( '' ) ;
206
206
el . bind ( 'click' , function ( e ) {
207
207
e . preventDefault ( ) ;
0 commit comments