Skip to content

Commit

Permalink
chore(tooltip): clean up code style
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleycho authored and jasonaden committed Sep 30, 2015
1 parent 8831694 commit 92fb6bf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/tooltip/test/tooltip.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ describe('tooltip', function() {
expect(elmBody.children().length).toBe(1);
}));

it( 'should close the tooltip when its trigger element is destroyed', inject(function() {
it('should close the tooltip when its trigger element is destroyed', inject(function() {
trigger(elm, 'mouseenter');
expect(tooltipScope.isOpen).toBe(true);

Expand Down Expand Up @@ -332,7 +332,7 @@ describe('tooltip', function() {
scope.$digest();
}));

it( 'should show and hide with the controller value', function() {
it('should show and hide with the controller value', function() {
expect(tooltipScope.isOpen).toBe(false);
elmScope.isOpen = true;
elmScope.$digest();
Expand All @@ -342,15 +342,15 @@ describe('tooltip', function() {
expect(tooltipScope.isOpen).toBe(false);
});

it( 'should update the controller value', function() {
it('should update the controller value', function() {
trigger(elm, 'mouseenter');
expect(elmScope.isOpen).toBe(true);
trigger(elm, 'mouseleave');
expect(elmScope.isOpen).toBe(false);
});
});

describe( 'with a trigger attribute', function() {
describe('with a trigger attribute', function() {
var scope, elmBody, elm, elmScope;

beforeEach( inject( function( $rootScope ) {
Expand Down Expand Up @@ -419,7 +419,7 @@ describe('tooltip', function() {
expect(tooltipScope2.isOpen).toBeTruthy();
}));

it( 'should accept multiple triggers based on the map for mapped triggers', inject(function($compile) {
it('should accept multiple triggers based on the map for mapped triggers', inject(function($compile) {
elmBody = angular.element(
'<div><input tooltip="Hello!" tooltip-trigger="focus fakeTriggerAttr" /></div>'
);
Expand All @@ -440,7 +440,7 @@ describe('tooltip', function() {
expect(tooltipScope.isOpen).toBeFalsy();
}));

it( 'should not show when trigger is set to "none"', inject(function($compile) {
it('should not show when trigger is set to "none"', inject(function($compile) {
elmBody = angular.element(
'<div><input tooltip="Hello!" tooltip-trigger="none" /></div>'
);
Expand Down

0 comments on commit 92fb6bf

Please sign in to comment.