Skip to content

Commit 27d382c

Browse files
committed
test(uiSref): remove unused dependencies
1 parent 07b3029 commit 27d382c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/stateDirectivesSpec.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ describe('uiStateRef', function() {
117117
expect(el.attr('href')).toBe('#/contacts/3');
118118
}));
119119

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) {
121121
expect($state.$current.name).toEqual('');
122122

123123
triggerClick(el);
@@ -128,7 +128,7 @@ describe('uiStateRef', function() {
128128
expect($stateParams).toEqual({ id: 5 });
129129
}));
130130

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) {
132132
expect($state.current.name).toEqual('');
133133

134134
triggerClick(el, {
@@ -145,7 +145,7 @@ describe('uiStateRef', function() {
145145
expect($stateParams).toEqual({ id: 5 });
146146
}));
147147

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) {
149149
expect($state.$current.name).toEqual('');
150150
triggerClick(el, { ctrlKey: true });
151151

@@ -156,7 +156,7 @@ describe('uiStateRef', function() {
156156
expect($stateParams).toEqual({ id: 5 });
157157
}));
158158

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) {
160160
expect($state.$current.name).toEqual('');
161161

162162
triggerClick(el, { metaKey: true });
@@ -167,7 +167,7 @@ describe('uiStateRef', function() {
167167
expect($stateParams).toEqual({ id: 5 });
168168
}));
169169

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) {
171171
expect($state.$current.name).toEqual('');
172172

173173
triggerClick(el, { shiftKey: true });
@@ -178,7 +178,7 @@ describe('uiStateRef', function() {
178178
expect($stateParams).toEqual({ id: 5 });
179179
}));
180180

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) {
182182
expect($state.$current.name).toEqual('');
183183

184184
triggerClick(el, { button: 1 });
@@ -189,7 +189,7 @@ describe('uiStateRef', function() {
189189
expect($stateParams).toEqual({ id: 5 });
190190
}));
191191

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) {
193193
el.attr('target', '_blank');
194194
expect($state.$current.name).toEqual('');
195195

@@ -201,7 +201,7 @@ describe('uiStateRef', function() {
201201
expect($stateParams).toEqual({ id: 5 });
202202
}));
203203

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) {
205205
expect($state.$current.name).toEqual('');
206206
el.bind('click', function(e) {
207207
e.preventDefault();

0 commit comments

Comments
 (0)