@@ -287,16 +287,16 @@ describe('Scope', function() {
287
287
it ( 'should watch functions' , function ( ) {
288
288
module ( provideLog ) ;
289
289
inject ( function ( $rootScope , log ) {
290
- $rootScope . fn = function ( ) { return 'a' } ;
290
+ $rootScope . fn = function ( ) { return 'a' ; } ;
291
291
$rootScope . $watch ( 'fn' , function ( fn ) {
292
292
log ( fn ( ) ) ;
293
293
} ) ;
294
294
$rootScope . $digest ( ) ;
295
295
expect ( log ) . toEqual ( 'a' ) ;
296
- $rootScope . fn = function ( ) { return 'b' } ;
296
+ $rootScope . fn = function ( ) { return 'b' ; } ;
297
297
$rootScope . $digest ( ) ;
298
298
expect ( log ) . toEqual ( 'a; b' ) ;
299
- } )
299
+ } ) ;
300
300
} ) ;
301
301
302
302
@@ -488,7 +488,7 @@ describe('Scope', function() {
488
488
$rootScope . $digest ( ) ;
489
489
expect ( log ) . toEqual ( [ '["b",[],{}]' , '["b",{},[]]' ] ) ;
490
490
491
- $rootScope . obj . shift ( )
491
+ $rootScope . obj . shift ( ) ;
492
492
log = [ ] ;
493
493
$rootScope . $digest ( ) ;
494
494
expect ( log ) . toEqual ( [ '[{},[]]' ] ) ;
@@ -499,14 +499,14 @@ describe('Scope', function() {
499
499
$rootScope . $watchCollection ( 'arrayLikeObject' , function logger ( obj ) {
500
500
forEach ( obj , function ( element ) {
501
501
arrayLikelog . push ( element . name ) ;
502
- } )
502
+ } ) ;
503
503
} ) ;
504
504
document . body . innerHTML = "<p>" +
505
505
"<a name='x'>a</a>" +
506
506
"<a name='y'>b</a>" +
507
507
"</p>" ;
508
508
509
- $rootScope . arrayLikeObject = document . getElementsByTagName ( 'a' )
509
+ $rootScope . arrayLikeObject = document . getElementsByTagName ( 'a' ) ;
510
510
$rootScope . $digest ( ) ;
511
511
expect ( arrayLikelog ) . toEqual ( [ 'x' , 'y' ] ) ;
512
512
} ) ;
@@ -565,7 +565,7 @@ describe('Scope', function() {
565
565
log = [ ] ;
566
566
$rootScope . $digest ( ) ;
567
567
expect ( log ) . toEqual ( [ '{"b":[],"c":"B"}' ] ) ;
568
- } )
568
+ } ) ;
569
569
} ) ;
570
570
} ) ;
571
571
} ) ;
0 commit comments