@@ -11,7 +11,7 @@ allow a user to enter data.
1111<doc:example>
1212 <doc:source>
1313 <script>
14- function FormController(){
14+ function FormController() {
1515 this.user = {
1616 name: 'John Smith',
1717 address:{line1: '123 Main St.', city:'Anytown', state:'AA', zip:'12345'},
@@ -53,22 +53,22 @@ allow a user to enter data.
5353
5454 </doc:source>
5555 <doc:scenario>
56- it('should show debug', function(){
56+ it('should show debug', function() {
5757 expect(binding('user')).toMatch(/John Smith/);
5858 });
59- it('should add contact', function(){
59+ it('should add contact', function() {
6060 using('.example').element('a:contains(add)').click();
6161 using('.example div:last').input('contact.value').enter('you@example.org');
6262 expect(binding('user')).toMatch(/\(234\) 555\-1212/);
6363 expect(binding('user')).toMatch(/you@example.org/);
6464 });
6565
66- it('should remove contact', function(){
66+ it('should remove contact', function() {
6767 using('.example').element('a:contains(X)').click();
6868 expect(binding('user')).not().toMatch(/\(234\) 555\-1212/);
6969 });
7070
71- it('should validate zip', function(){
71+ it('should validate zip', function() {
7272 expect(using('.example').
7373 element(':input[ng\\:model="user.address.zip"]').
7474 prop('className')).not().toMatch(/ng-invalid/);
@@ -78,7 +78,7 @@ allow a user to enter data.
7878 prop('className')).toMatch(/ng-invalid/);
7979 });
8080
81- it('should validate state', function(){
81+ it('should validate state', function() {
8282 expect(using('.example').element(':input[ng\\:model="user.address.state"]').prop('className'))
8383 .not().toMatch(/ng-invalid/);
8484 using('.example').input('user.address.state').enter('XXX');
0 commit comments