Skip to content

Commit 64504d4

Browse files
author
Oleksandr Dubovyk
committed
MAGETWO-62966: Storefront Password Strength validator ignores case when Email = Password
- Fixed js unit tests
1 parent 43965ed commit 64504d4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

dev/tests/js/jasmine/tests/lib/mage/validation.test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -165,18 +165,18 @@ define([
165165
});
166166

167167
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" />');
171171

172172
expect($.validator.methods['password-not-equal-to-user-name'].call(
173173
$.validator.prototype, password.val(), null, email.val()
174174
)).toEqual(false);
175175
});
176176

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" />');
180180

181181
expect($.validator.methods['password-not-equal-to-user-name'].call(
182182
$.validator.prototype, password.val(), null, email.val()

0 commit comments

Comments
 (0)