Skip to content

Commit

Permalink
apply requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahd93 committed Apr 16, 2019
1 parent 8fb3875 commit 06d2702
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
17 changes: 0 additions & 17 deletions gsa/src/web/components/dialog/__tests__/errordialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,23 +50,6 @@ describe('ErrorDialog component tests', () => {
expect(handleClose).toHaveBeenCalled();
});

/* test('should close ErrorDialog with cancel button', () => {
const handleClose = jest.fn();
const handleResumeClick = jest.fn();
const {baseElement} = render(
<ConfirmationDialog
title="bar"
onClose={handleClose}
onResumeClick={handleResumeClick}
/>,
);
const buttons = baseElement.querySelectorAll('button');
fireEvent.click(buttons[0]);
expect(handleClose).toHaveBeenCalled();
}); */

test('should close ErrorDialog with resume button', () => {
const handleClose = jest.fn();

Expand Down
2 changes: 1 addition & 1 deletion gsa/src/web/pages/extras/trashcanpage.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ class Trashcan extends React.Component {
{error && (
<ErrorDialog
text={error.message}
title="Error"
title={_('Error')}
onClose={this.handleErrorClose}
/>
)}
Expand Down

0 comments on commit 06d2702

Please sign in to comment.