From fd822bdaf9d04e522aaa5400b673f333190abe98 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Fri, 7 Oct 2011 11:27:49 -0700 Subject: chore(formating): clean code to be function() { --- test/directivesSpec.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'test/directivesSpec.js') diff --git a/test/directivesSpec.js b/test/directivesSpec.js index 1cbb92b0..8c07cf70 100644 --- a/test/directivesSpec.js +++ b/test/directivesSpec.js @@ -63,8 +63,8 @@ describe("directive", function() { expect(lowercase(element.html())).toEqual('hello'); }); - it('should have $element set to current bind element', function(){ - angularFilter.myFilter = function(){ + it('should have $element set to current bind element', function() { + angularFilter.myFilter = function() { this.$element.addClass("filter"); return 'HELLO'; }; @@ -80,7 +80,7 @@ describe("directive", function() { expect(scope.$element.text()).toEqual('-0false'); }); - it('should render object as JSON ignore $$', function(){ + it('should render object as JSON ignore $$', function() { var scope = compile('
{{ {key:"value", $$key:"hide"} }}
'); scope.$digest(); expect(fromJson(scope.$element.text())).toEqual({key:'value'}); @@ -108,7 +108,7 @@ describe("directive", function() { expect(innerText).toEqual('INNER'); }); - it('should render object as JSON ignore $$', function(){ + it('should render object as JSON ignore $$', function() { var scope = compile('
{{ {key:"value", $$key:"hide"}  }}
'); scope.$digest(); expect(fromJson(scope.$element.text())).toEqual({key:'value'}); @@ -148,7 +148,7 @@ describe("directive", function() { expect(input.checked).toEqual(true); }); - describe('ng:click', function(){ + describe('ng:click', function() { it('should get called on a click', function() { var scope = compile('
'); scope.$digest(); @@ -208,7 +208,7 @@ describe("directive", function() { }); - it('should support adding multiple classes via an array', function(){ + it('should support adding multiple classes via an array', function() { var scope = compile('
'); scope.$digest(); expect(element.hasClass('existing')).toBeTruthy(); @@ -217,7 +217,7 @@ describe("directive", function() { }); - it('should support adding multiple classes via a space delimited string', function(){ + it('should support adding multiple classes via a space delimited string', function() { var scope = compile('
'); scope.$digest(); expect(element.hasClass('existing')).toBeTruthy(); @@ -420,7 +420,7 @@ describe("directive", function() { }); describe('ng:hide', function() { - it('should hide an element', function(){ + it('should hide an element', function() { var element = jqLite('
'), scope = compile(element); @@ -480,7 +480,7 @@ describe("directive", function() { expect(scope.$element.text()).toEqual('hey dude!'); }); - it('should infer injection arguments', function(){ + it('should infer injection arguments', function() { temp.MyController = function($xhr){ this.$root.someService = $xhr; }; -- cgit v1.2.3