From bd5c9a03713e38418a16a3074b7e4381adfe5b3a Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Fri, 28 Jun 2013 08:28:06 +0100 Subject: style(ngRepeatSpec): fix up colons and iit --- test/ng/directive/ngRepeatSpec.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'test/ng/directive') diff --git a/test/ng/directive/ngRepeatSpec.js b/test/ng/directive/ngRepeatSpec.js index 925a93ce..58849d03 100644 --- a/test/ng/directive/ngRepeatSpec.js +++ b/test/ng/directive/ngRepeatSpec.js @@ -71,7 +71,7 @@ describe('ngRepeat', function() { "c" + "

"; - var htmlCollection = document.getElementsByTagName('a') + var htmlCollection = document.getElementsByTagName('a'); scope.items = htmlCollection; scope.$digest(); expect(element.find('li').length).toEqual(3); @@ -446,7 +446,7 @@ describe('ngRepeat', function() { scope.array = ['b', 'a']; scope.$digest(); - var lis = element.find('li'); + lis = element.find('li'); expect(lis.eq(0).data('mark')).toEqual('b'); expect(lis.eq(1).data('mark')).toEqual('a'); }); @@ -460,7 +460,7 @@ describe('ngRepeat', function() { return { replace: true, template: '{{log(i)}}' - } + }; }); element = jqLite(''); $compile(element)($rootScope); @@ -480,13 +480,13 @@ describe('ngRepeat', function() { })); - iit('should work when placed on a root element of attr directive with ASYNC replaced template', + it('should work when placed on a root element of attr directive with ASYNC replaced template', inject(function($templateCache, $compile, $rootScope) { $compileProvider.directive('replaceMeWithRepeater', function() { return { replace: true, templateUrl: 'replace-me-with-repeater.html' - } + }; }); $templateCache.put('replace-me-with-repeater.html', '
{{log(i)}}
'); element = jqLite('--'); @@ -514,7 +514,7 @@ describe('ngRepeat', function() { restrict: 'E', replace: true, template: '
{{i}}
' - } + }; }); element = $compile('
')($rootScope); expect(element.text()).toBe(''); @@ -530,7 +530,7 @@ describe('ngRepeat', function() { restrict: 'E', replace: true, templateUrl: 'replace-me-with-repeater.html' - } + }; }); $templateCache.put('replace-me-with-repeater.html', '
{{i}}
'); element = $compile('
')($rootScope); @@ -585,7 +585,7 @@ describe('ngRepeat', function() { scope.items = []; scope.$digest(); - var newElements = element.find('li'); + newElements = element.find('li'); expect(newElements.length).toEqual(0); }); @@ -605,7 +605,7 @@ describe('ngRepeat', function() { scope.items = []; scope.$digest(); - var newElements = element.find('li'); + newElements = element.find('li'); expect(newElements.length).toEqual(0); }); @@ -784,7 +784,7 @@ describe('ngRepeat ngAnimate', function() { $rootScope.$digest(); //the last element gets pushed down when it animates - var kids = element.children(); + kids = element.children(); var first = jqLite(kids[0]); var left = jqLite(kids[1]); var right = jqLite(kids[2]); -- cgit v1.2.3