aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/InjectorSpec.js8
-rw-r--r--test/sanitizerSpec.js2
-rw-r--r--test/widgetsSpec.js2
3 files changed, 6 insertions, 6 deletions
diff --git a/test/InjectorSpec.js b/test/InjectorSpec.js
index a0f15132..84e515b7 100644
--- a/test/InjectorSpec.js
+++ b/test/InjectorSpec.js
@@ -87,7 +87,7 @@ describe('injector', function(){
describe('annotation', function(){
it('should return $inject', function(){
- function fn(){};
+ function fn(){}
fn.$inject = ['a'];
expect(injectionArgs(fn)).toBe(fn.$inject);
expect(injectionArgs(function(){})).toEqual([]);
@@ -105,19 +105,19 @@ describe('injector', function(){
multi-line comment
function (a, b){}
*/
- /* {some type} */ c){ extraParans();};
+ /* {some type} */ c){ extraParans();}
expect(injectionArgs($f_n0)).toEqual(['$a', 'b']);
expect($f_n0.$inject).toEqual(['$a', 'b']);
});
it('should handle no arg functions', function(){
- function $f_n0(){};
+ function $f_n0(){}
expect(injectionArgs($f_n0)).toEqual([]);
expect($f_n0.$inject).toEqual([]);
});
it('should handle args with both $ and _', function(){
- function $f_n0($a_){};
+ function $f_n0($a_){}
expect(injectionArgs($f_n0)).toEqual(['$a']);
expect($f_n0.$inject).toEqual(['$a']);
});
diff --git a/test/sanitizerSpec.js b/test/sanitizerSpec.js
index 787ce84c..b42a6237 100644
--- a/test/sanitizerSpec.js
+++ b/test/sanitizerSpec.js
@@ -186,7 +186,7 @@ describe('HTML', function(){
function tag(name) {
writer.start(name, {});
writer.end(name);
- };
+ }
tag('frameset');
tag('frame');
tag('form');
diff --git a/test/widgetsSpec.js b/test/widgetsSpec.js
index eab5cce7..58cc33d8 100644
--- a/test/widgetsSpec.js
+++ b/test/widgetsSpec.js
@@ -798,7 +798,7 @@ describe("widget", function(){
describe('ng:view', function() {
- var rootScope, rootScope, $route, $location, $browser;
+ var rootScope, $route, $location, $browser;
beforeEach(function() {
rootScope = angular.compile('<ng:view></ng:view>')();