Skip to content

Commit

Permalink
Fix jest test
Browse files Browse the repository at this point in the history
Added 'undefined' as the second optional param to
resumeIndexOperation call.
  • Loading branch information
jloleysens committed Mar 5, 2020
1 parent 5cd2270 commit 63f6659
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ describe('reindex API', () => {
kibanaResponseFactory
);
// It called resume correctly
expect(mockReindexService.resumeReindexOperation).toHaveBeenCalledWith('theIndex');
expect(mockReindexService.resumeReindexOperation).toHaveBeenCalledWith('theIndex', undefined);
expect(mockReindexService.createReindexOperation).not.toHaveBeenCalled();

// It returned the right results
Expand Down

0 comments on commit 63f6659

Please sign in to comment.