Skip to content

Commit

Permalink
Mock openConfirm in test
Browse files Browse the repository at this point in the history
  • Loading branch information
maryia-lapata committed Feb 17, 2020
1 parent 8f1b3eb commit 1ea3ab9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ describe('CreateIndexPatternWizardRender', () => {
config: {},
changeUrl: () => {},
indexPatternCreationType: {},
openConfirm: jest.fn(),
});

expect(render.mock.calls.length).toBe(1);
Expand Down

0 comments on commit 1ea3ab9

Please sign in to comment.