Skip to content

Commit 79e38cb

Browse files
committed
chore(tooltip): clean up code style
1 parent b413a22 commit 79e38cb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/tooltip/test/tooltip.spec.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ describe('tooltip', function() {
197197
expect(elmBody.children().length).toBe(1);
198198
}));
199199

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

@@ -332,7 +332,7 @@ describe('tooltip', function() {
332332
scope.$digest();
333333
}));
334334

335-
it( 'should show and hide with the controller value', function() {
335+
it('should show and hide with the controller value', function() {
336336
expect(tooltipScope.isOpen).toBe(false);
337337
elmScope.isOpen = true;
338338
elmScope.$digest();
@@ -342,15 +342,15 @@ describe('tooltip', function() {
342342
expect(tooltipScope.isOpen).toBe(false);
343343
});
344344

345-
it( 'should update the controller value', function() {
345+
it('should update the controller value', function() {
346346
trigger(elm, 'mouseenter');
347347
expect(elmScope.isOpen).toBe(true);
348348
trigger(elm, 'mouseleave');
349349
expect(elmScope.isOpen).toBe(false);
350350
});
351351
});
352352

353-
describe( 'with a trigger attribute', function() {
353+
describe('with a trigger attribute', function() {
354354
var scope, elmBody, elm, elmScope;
355355

356356
beforeEach( inject( function( $rootScope ) {
@@ -419,7 +419,7 @@ describe('tooltip', function() {
419419
expect(tooltipScope2.isOpen).toBeTruthy();
420420
}));
421421

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

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

0 commit comments

Comments
 (0)