@@ -165,18 +165,18 @@ define([
165
165
} ) ;
166
166
167
167
describe ( 'Validation of the password against the user name' , function ( ) {
168
- it ( 'rejects data, if password is the same as user name' , function ( ) {
169
- var password = $ ( '<input id="password" type="password" value="EmailPasswordTheSame" />' ) ;
170
- var email = $ ( '<input id="email" type="email" value="EmailPasswordTheSame" />' ) ;
168
+ it ( 'rejects data, if password is the same as user name' , function ( ) {
169
+ var password = $ ( '<input id="password" type="password" value="EmailPasswordTheSame" />' ) ,
170
+ email = $ ( '<input id="email" type="email" value="EmailPasswordTheSame" />' ) ;
171
171
172
172
expect ( $ . validator . methods [ 'password-not-equal-to-user-name' ] . call (
173
173
$ . validator . prototype , password . val ( ) , null , email . val ( )
174
174
) ) . toEqual ( false ) ;
175
175
} ) ;
176
176
177
- it ( 'approves data, if password is different from user name' , function ( ) {
178
- var password = $ ( '<input id="password" type="password" value="SomePassword" />' ) ;
179
- var email = $ ( '<input id="email" type="email" value="SomeEmail" />' ) ;
177
+ it ( 'approves data, if password is different from user name' , function ( ) {
178
+ var password = $ ( '<input id="password" type="password" value="SomePassword" />' ) ,
179
+ email = $ ( '<input id="email" type="email" value="SomeEmail" />' ) ;
180
180
181
181
expect ( $ . validator . methods [ 'password-not-equal-to-user-name' ] . call (
182
182
$ . validator . prototype , password . val ( ) , null , email . val ( )
0 commit comments