aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng/directive/ngRepeatSpec.js
diff options
context:
space:
mode:
authorPete Bacon Darwin2013-06-28 08:28:06 +0100
committerPete Bacon Darwin2013-06-28 08:28:06 +0100
commitbd5c9a03713e38418a16a3074b7e4381adfe5b3a (patch)
tree5e3aea139fdf9fb4e73db4d31cb0062ac37469a9 /test/ng/directive/ngRepeatSpec.js
parent15e1a29cd08993b599f390e83a249ec17f753972 (diff)
downloadangular.js-bd5c9a03713e38418a16a3074b7e4381adfe5b3a.tar.bz2
style(ngRepeatSpec): fix up colons and iit
Diffstat (limited to 'test/ng/directive/ngRepeatSpec.js')
-rw-r--r--test/ng/directive/ngRepeatSpec.js20
1 files changed, 10 insertions, 10 deletions
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() {
"<a name='x'>c</a>" +
"</p>";
- 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: '<span ng-repeat="i in items">{{log(i)}}</span>'
- }
+ };
});
element = jqLite('<span replace-me-with-repeater></span>');
$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', '<div ng-repeat="i in items">{{log(i)}}</div>');
element = jqLite('<span>-</span><span replace-me-with-repeater></span><span>-</span>');
@@ -514,7 +514,7 @@ describe('ngRepeat', function() {
restrict: 'E',
replace: true,
template: '<div ng-repeat="i in [1,2,3]">{{i}}</div>'
- }
+ };
});
element = $compile('<div><replace-me-with-repeater></replace-me-with-repeater></div>')($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', '<div ng-repeat="i in [1,2,3]">{{i}}</div>');
element = $compile('<div><replace-me-with-repeater></replace-me-with-repeater></div>')($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]);