diff --git a/src/popover/test/popoverSpec.js b/src/popover/test/popoverSpec.js index 633aeb8b2c..81e37d4734 100644 --- a/src/popover/test/popoverSpec.js +++ b/src/popover/test/popoverSpec.js @@ -1,7 +1,7 @@ describe('popover', function() { - var elm, + var elm, elmBody, - scope, + scope, elmScope; // load the popover code @@ -11,8 +11,8 @@ describe('popover', function() { beforeEach(module('template/popover/popover.html')); beforeEach(inject(function($rootScope, $compile) { - elmBody = angular.element( - '
Selector Text
' + elmBody = angular.element( + '
Selector Text
' ); scope = $rootScope; @@ -24,7 +24,7 @@ describe('popover', function() { it('should not be open initially', inject(function() { expect( elmScope.tt_isOpen ).toBe( false ); - + // We can only test *that* the popover-popup element wasn't created as the // implementation is templated and replaced. expect( elmBody.children().length ).toBe( 1 ); @@ -51,8 +51,8 @@ describe('popover', function() { })); it('should allow specification of placement', inject( function( $compile ) { - elm = $compile( angular.element( - 'Selector Text' + elm = $compile( angular.element( + 'Selector Text' ) )( scope ); elmScope = elm.scope(); @@ -62,7 +62,7 @@ describe('popover', function() { it('should work inside an ngRepeat', inject( function( $compile ) { - elm = $compile( angular.element( + elm = $compile( angular.element( '