Skip to content

Commit

Permalink
test(): fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
horprogs committed Dec 31, 2021
1 parent 73cd1d7 commit a17d37d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tests/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,7 @@ describe('Validation', () => {
expect(onSubmit).not.toHaveBeenCalled();
expect(console.error).toHaveBeenCalled();

changeTextBySelector('#name', 'text');
validation.addField('#name', [
{
rule: 'customRegexp' as Rules,
Expand All @@ -511,6 +512,7 @@ describe('Validation', () => {
expect(getElemByTestId('error-label-#name')).toBeInTheDocument();
expect(onSubmit).not.toHaveBeenCalled();
expect(console.error).toHaveBeenCalled();
changeTextBySelector('#name', '');

validation.addField('#name', [
{
Expand Down

0 comments on commit a17d37d

Please sign in to comment.