Skip to content

Commit

Permalink
code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
george-usynin-deriv committed Feb 18, 2022
1 parent 78aaab2 commit 11a2478
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ describe('<OnRampProviderPopup />', () => {
};

it('should not render <OnRampProviderPopup /> component', () => {
const { container } = render(<OnRampProviderPopup {...props} selected_provider={null} />);
render(<OnRampProviderPopup {...props} selected_provider={null} />);

expect(container.querySelector('.on-ramp__popup')).not.toBeInTheDocument();
expect(screen.queryByTestId('dt_on-ramp_popup')).not.toBeInTheDocument();
});

it('should show loader', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/cashier/src/Components/on-ramp-provider-popup.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const OnRampProviderPopup = ({
}

return (
<div className='on-ramp__popup'>
<div className='on-ramp__popup' data-testid='dt_on-ramp_popup'>
{selected_provider.should_show_deposit_address && (
<React.Fragment>
<div className='on-ramp__popup-deposit'>
Expand Down

0 comments on commit 11a2478

Please sign in to comment.