aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPete Bacon Darwin2013-10-02 14:15:09 +0100
committerPete Bacon Darwin2013-10-02 14:15:09 +0100
commitac72bee40085ea79759eec3543be8175236103ef (patch)
treea9c3a2e3c5eb820925d6a94596dd9a24c0472f1f
parent29770677269279b8150b0a98c6dd7491685cd047 (diff)
downloadangular.js-ac72bee40085ea79759eec3543be8175236103ef.tar.bz2
style(rootScopeSpec): add semi-colons
-rw-r--r--test/ng/rootScopeSpec.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/ng/rootScopeSpec.js b/test/ng/rootScopeSpec.js
index 656385e9..a23db81a 100644
--- a/test/ng/rootScopeSpec.js
+++ b/test/ng/rootScopeSpec.js
@@ -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');
- })
+ });
});
@@ -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([ '[{},[]]' ]);
@@ -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']);
});
@@ -565,7 +565,7 @@ describe('Scope', function() {
log = [];
$rootScope.$digest();
expect(log).toEqual([ '{"b":[],"c":"B"}' ]);
- })
+ });
});
});
});