Skip to content

HW#7_Trupkina#26

Open
SvetlanaTr wants to merge 4 commits intomasterfrom
HW#7_Trupkina
Open

HW#7_Trupkina#26
SvetlanaTr wants to merge 4 commits intomasterfrom
HW#7_Trupkina

Conversation

@SvetlanaTr
Copy link
Copy Markdown
Collaborator

No description provided.

Comment on lines +6 to +19
let passwordTrue = [
'aaaaaaaaA#',
'AAAAAAA22a#',
'passwOrd3%'
];
let passwordFalse = ['парОль3%',
'AAAAAAAAAA#',
'aA#',
'2222222222A#',
'2222222222a#',
'22222222222',
'2222222222#',
'############'
];
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

passwordTrue / passwordFalse - incorrect names.
better option will be smth like correctPasswords / incorrectPasswords

Comment on lines +21 to +23
expect(passwordTrue).not.toBeNull();
expect(passwordTrue).toBeDefined();
expect(passwordTrue).not.toBeUndefined();
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are testing the variable you wrote inside the test. what for?

Comment on lines +38 to +58
let emailTrue = [
'example@gmail.com',
'EXAMPLE@MAIL.RU',
'EXam_p.l-e@gmaiL.Com',
'EXam_p.l35e@gmaiL.Com',
'gss@Yandex.mojong',
'example@356.ru',
'example@Flora-mix.ru'
];
let emailFalse = [
'@gmaiL.Com',
'gs@Yandex.mojong',
'example @gmail.com',
'example@356.333',
'exa23@44m.p-le@Flora-mix.ru'
];
test('Testing in function checkEmail if do not write anything:', () => {
expect(emailTrue).not.toBeNull();
expect(emailTrue).toBeDefined();
expect(emailTrue).not.toBeUndefined();
});
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same questions as in the first part

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants