Skip to content

Commit

Permalink
test(uiSref): remove unused dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
nateabele committed Apr 16, 2014
1 parent 07b3029 commit 27d382c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/stateDirectivesSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ describe('uiStateRef', function() {
expect(el.attr('href')).toBe('#/contacts/3');
}));

it('should transition states when left-clicked', inject(function($state, $stateParams, $document, $q) {
it('should transition states when left-clicked', inject(function($state, $stateParams, $q) {
expect($state.$current.name).toEqual('');

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

it('should transition when given a click that contains no data (fake-click)', inject(function($state, $stateParams, $document, $q) {
it('should transition when given a click that contains no data (fake-click)', inject(function($state, $stateParams, $q) {
expect($state.current.name).toEqual('');

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

it('should not transition states when ctrl-clicked', inject(function($state, $stateParams, $document, $q) {
it('should not transition states when ctrl-clicked', inject(function($state, $stateParams, $q) {
expect($state.$current.name).toEqual('');
triggerClick(el, { ctrlKey: true });

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

it('should not transition states when meta-clicked', inject(function($state, $stateParams, $document, $q) {
it('should not transition states when meta-clicked', inject(function($state, $stateParams, $q) {
expect($state.$current.name).toEqual('');

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

it('should not transition states when shift-clicked', inject(function($state, $stateParams, $document, $q) {
it('should not transition states when shift-clicked', inject(function($state, $stateParams, $q) {
expect($state.$current.name).toEqual('');

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

it('should not transition states when middle-clicked', inject(function($state, $stateParams, $document, $q) {
it('should not transition states when middle-clicked', inject(function($state, $stateParams, $q) {
expect($state.$current.name).toEqual('');

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

it('should not transition states when element has target specified', inject(function($state, $stateParams, $document, $q) {
it('should not transition states when element has target specified', inject(function($state, $stateParams, $q) {
el.attr('target', '_blank');
expect($state.$current.name).toEqual('');

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

it('should not transition states if preventDefault() is called in click handler', inject(function($state, $stateParams, $document, $q) {
it('should not transition states if preventDefault() is called in click handler', inject(function($state, $stateParams, $q) {
expect($state.$current.name).toEqual('');
el.bind('click', function(e) {
e.preventDefault();
Expand Down

0 comments on commit 27d382c

Please sign in to comment.