Skip to content

Commit

Permalink
refactor: variable name change
Browse files Browse the repository at this point in the history
  • Loading branch information
“yauheni-kryzhyk-deriv” committed Apr 4, 2023
1 parent 71277a4 commit b6f5d96
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ describe('LanguageRadioButton', () => {
'settings-language__language-link--active'
);

const btn = screen.getByRole('radio');
expect(btn).toHaveClass('settings-language__language--radio-button');
expect(btn).toHaveAttribute('id', 'test id');
expect(btn).toHaveAttribute('name', 'Test Language');
userEvent.click(btn);
const button = screen.getByRole('radio');
expect(button).toHaveClass('settings-language__language--radio-button');
expect(button).toHaveAttribute('id', 'test id');
expect(button).toHaveAttribute('name', 'Test Language');
userEvent.click(button);
expect(mock_props.onChange).toHaveBeenCalled();
});
});

0 comments on commit b6f5d96

Please sign in to comment.