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() { --- src/directives.js | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'src/directives.js') diff --git a/src/directives.js b/src/directives.js index 852d04cd..b1502f54 100644 --- a/src/directives.js +++ b/src/directives.js @@ -61,7 +61,7 @@ - it('should check greeting', function(){ + it('should check greeting', function() { expect(binding('greeting')).toBe('Hello'); expect(binding('person')).toBe('World'); }); @@ -115,10 +115,10 @@ angularDirective("ng:init", function(expression){ {type:'email', value:'john.smith@example.org'} ]; } SettingsController.prototype = { - greet: function(){ + greet: function() { alert(this.name); }, - addContact: function(){ + addContact: function() { this.contacts.push({type:'email', value:'yourname@example.org'}); }, removeContact: function(contactToRemove) { @@ -149,7 +149,7 @@ angularDirective("ng:init", function(expression){ - it('should check controller', function(){ + it('should check controller', function() { expect(element('.doc-example-live div>:input').val()).toBe('John Smith'); expect(element('.doc-example-live li:nth-child(1) input').val()) .toBe('408 555 1212'); @@ -199,7 +199,7 @@ angularDirective("ng:controller", function(expression){ @@ -209,7 +209,7 @@ angularDirective("ng:controller", function(expression){ - it('should check ng:bind', function(){ + it('should check ng:bind', function() { expect(using('.doc-example-live').binding('name')).toBe('Whirled'); using('.doc-example-live').input('name').enter('world'); expect(using('.doc-example-live').binding('name')).toBe('world'); @@ -326,7 +326,7 @@ function compileBindTemplate(template){ @@ -413,7 +413,7 @@ angularDirective("ng:bind-template", function(expression, element){ - it('should check ng:bind-attr', function(){ + it('should check ng:bind-attr', function() { expect(using('.doc-example-live').element('a').attr('href')). toBe('http://www.google.com/search?q=AngularJS'); using('.doc-example-live').input('query').enter('google'); @@ -471,7 +471,7 @@ angularDirective("ng:bind-attr", function(expression){ count: {{count}} - it('should check ng:click', function(){ + it('should check ng:click', function() { expect(binding('count')).toBe('0'); element('.doc-example-live :button').click(); expect(binding('count')).toBe('1'); @@ -516,10 +516,10 @@ angularDirective("ng:click", function(expression, element){