Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit ac72bee

Browse files
style(rootScopeSpec): add semi-colons
1 parent 2977067 commit ac72bee

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/ng/rootScopeSpec.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -287,16 +287,16 @@ describe('Scope', function() {
287287
it('should watch functions', function() {
288288
module(provideLog);
289289
inject(function($rootScope, log) {
290-
$rootScope.fn = function() {return 'a'};
290+
$rootScope.fn = function() {return 'a';};
291291
$rootScope.$watch('fn', function(fn) {
292292
log(fn());
293293
});
294294
$rootScope.$digest();
295295
expect(log).toEqual('a');
296-
$rootScope.fn = function() {return 'b'};
296+
$rootScope.fn = function() {return 'b';};
297297
$rootScope.$digest();
298298
expect(log).toEqual('a; b');
299-
})
299+
});
300300
});
301301

302302

@@ -488,7 +488,7 @@ describe('Scope', function() {
488488
$rootScope.$digest();
489489
expect(log).toEqual([ '["b",[],{}]', '["b",{},[]]' ]);
490490

491-
$rootScope.obj.shift()
491+
$rootScope.obj.shift();
492492
log = [];
493493
$rootScope.$digest();
494494
expect(log).toEqual([ '[{},[]]' ]);
@@ -499,14 +499,14 @@ describe('Scope', function() {
499499
$rootScope.$watchCollection('arrayLikeObject', function logger(obj) {
500500
forEach(obj, function (element){
501501
arrayLikelog.push(element.name);
502-
})
502+
});
503503
});
504504
document.body.innerHTML = "<p>" +
505505
"<a name='x'>a</a>" +
506506
"<a name='y'>b</a>" +
507507
"</p>";
508508

509-
$rootScope.arrayLikeObject = document.getElementsByTagName('a')
509+
$rootScope.arrayLikeObject = document.getElementsByTagName('a');
510510
$rootScope.$digest();
511511
expect(arrayLikelog).toEqual(['x', 'y']);
512512
});
@@ -565,7 +565,7 @@ describe('Scope', function() {
565565
log = [];
566566
$rootScope.$digest();
567567
expect(log).toEqual([ '{"b":[],"c":"B"}' ]);
568-
})
568+
});
569569
});
570570
});
571571
});

0 commit comments

Comments
 (0)