@@ -11,7 +11,7 @@ allow a user to enter data.
11
11
<doc:example>
12
12
<doc:source>
13
13
<script>
14
- function FormController(){
14
+ function FormController() {
15
15
this.user = {
16
16
name: 'John Smith',
17
17
address:{line1: '123 Main St.', city:'Anytown', state:'AA', zip:'12345'},
@@ -53,22 +53,22 @@ allow a user to enter data.
53
53
54
54
</doc:source>
55
55
<doc:scenario>
56
- it('should show debug', function(){
56
+ it('should show debug', function() {
57
57
expect(binding('user')).toMatch(/John Smith/);
58
58
});
59
- it('should add contact', function(){
59
+ it('should add contact', function() {
60
60
using('.example').element('a:contains(add)').click();
61
61
using('.example div:last').input('contact.value').enter('
[email protected] ');
62
62
expect(binding('user')).toMatch(/\(234\) 555\-1212/);
63
63
expect(binding('user')).toMatch(/
[email protected] /);
64
64
});
65
65
66
- it('should remove contact', function(){
66
+ it('should remove contact', function() {
67
67
using('.example').element('a:contains(X)').click();
68
68
expect(binding('user')).not().toMatch(/\(234\) 555\-1212/);
69
69
});
70
70
71
- it('should validate zip', function(){
71
+ it('should validate zip', function() {
72
72
expect(using('.example').
73
73
element(':input[ng\\:model="user.address.zip"]').
74
74
prop('className')).not().toMatch(/ng-invalid/);
@@ -78,7 +78,7 @@ allow a user to enter data.
78
78
prop('className')).toMatch(/ng-invalid/);
79
79
});
80
80
81
- it('should validate state', function(){
81
+ it('should validate state', function() {
82
82
expect(using('.example').element(':input[ng\\:model="user.address.state"]').prop('className'))
83
83
.not().toMatch(/ng-invalid/);
84
84
using('.example').input('user.address.state').enter('XXX');
0 commit comments