diff options
| author | Misko Hevery | 2011-10-07 11:27:49 -0700 | 
|---|---|---|
| committer | Igor Minar | 2011-10-11 11:01:46 -0700 | 
| commit | fd822bdaf9d04e522aaa5400b673f333190abe98 (patch) | |
| tree | 451cd26d3f7da862692d6c56e6e8f235824c180a /docs/content/cookbook/form.ngdoc | |
| parent | 4f78fd692c0ec51241476e6be9a4df06cd62fdd6 (diff) | |
| download | angular.js-fd822bdaf9d04e522aaa5400b673f333190abe98.tar.bz2 | |
chore(formating): clean code to be function() {
Diffstat (limited to 'docs/content/cookbook/form.ngdoc')
| -rw-r--r-- | docs/content/cookbook/form.ngdoc | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/docs/content/cookbook/form.ngdoc b/docs/content/cookbook/form.ngdoc index c74b203b..874db792 100644 --- a/docs/content/cookbook/form.ngdoc +++ b/docs/content/cookbook/form.ngdoc @@ -11,7 +11,7 @@ allow a user to enter data.  <doc:example>   <doc:source>    <script> -    function FormController(){ +    function FormController() {        this.user = {          name: 'John Smith',          address:{line1: '123 Main St.', city:'Anytown', state:'AA', zip:'12345'}, @@ -53,22 +53,22 @@ allow a user to enter data.   </doc:source>   <doc:scenario> -  it('should show debug', function(){ +  it('should show debug', function() {      expect(binding('user')).toMatch(/John Smith/);    }); -  it('should add contact', function(){ +  it('should add contact', function() {      using('.example').element('a:contains(add)').click();      using('.example div:last').input('contact.value').enter('you@example.org');      expect(binding('user')).toMatch(/\(234\) 555\-1212/);      expect(binding('user')).toMatch(/you@example.org/);    }); -  it('should remove contact', function(){ +  it('should remove contact', function() {      using('.example').element('a:contains(X)').click();      expect(binding('user')).not().toMatch(/\(234\) 555\-1212/);    }); -  it('should validate zip', function(){ +  it('should validate zip', function() {      expect(using('.example').        element(':input[ng\\:model="user.address.zip"]').        prop('className')).not().toMatch(/ng-invalid/); @@ -78,7 +78,7 @@ allow a user to enter data.        prop('className')).toMatch(/ng-invalid/);    }); -  it('should validate state', function(){ +  it('should validate state', function() {      expect(using('.example').element(':input[ng\\:model="user.address.state"]').prop('className'))        .not().toMatch(/ng-invalid/);      using('.example').input('user.address.state').enter('XXX'); | 
