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

Commit

Permalink
style(rootScopeSpec): add semi-colons
Browse files Browse the repository at this point in the history
  • Loading branch information
petebacondarwin committed Oct 2, 2013
1 parent 2977067 commit ac72bee
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/ng/rootScopeSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,16 +287,16 @@ describe('Scope', function() {
it('should watch functions', function() {
module(provideLog);
inject(function($rootScope, log) {
$rootScope.fn = function() {return 'a'};
$rootScope.fn = function() {return 'a';};
$rootScope.$watch('fn', function(fn) {
log(fn());
});
$rootScope.$digest();
expect(log).toEqual('a');
$rootScope.fn = function() {return 'b'};
$rootScope.fn = function() {return 'b';};
$rootScope.$digest();
expect(log).toEqual('a; b');
})
});
});


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

$rootScope.obj.shift()
$rootScope.obj.shift();
log = [];
$rootScope.$digest();
expect(log).toEqual([ '[{},[]]' ]);
Expand All @@ -499,14 +499,14 @@ describe('Scope', function() {
$rootScope.$watchCollection('arrayLikeObject', function logger(obj) {
forEach(obj, function (element){
arrayLikelog.push(element.name);
})
});
});
document.body.innerHTML = "<p>" +
"<a name='x'>a</a>" +
"<a name='y'>b</a>" +
"</p>";

$rootScope.arrayLikeObject = document.getElementsByTagName('a')
$rootScope.arrayLikeObject = document.getElementsByTagName('a');
$rootScope.$digest();
expect(arrayLikelog).toEqual(['x', 'y']);
});
Expand Down Expand Up @@ -565,7 +565,7 @@ describe('Scope', function() {
log = [];
$rootScope.$digest();
expect(log).toEqual([ '{"b":[],"c":"B"}' ]);
})
});
});
});
});
Expand Down

0 comments on commit ac72bee

Please sign in to comment.