Skip to content

Commit

Permalink
Fix jest test
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecote committed Apr 18, 2022
1 parent 2c421ab commit 8902804
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ describe('indexDocument', () => {
return logger.error.mock.calls.length !== 0;
});

const expectedMessage = `error writing bulk events: "expected failure"; docs: [{"create":{"_index":"event-log"}},{"message":"foo"}]`;
const expectedMessage = `error writing bulk events: "expected failure"; docs: [{"create":{"_index":"event-log","require_alias":true}},{"message":"foo"}]`;
expect(logger.error).toHaveBeenCalledWith(expectedMessage);
});
});
Expand Down

0 comments on commit 8902804

Please sign in to comment.