Skip to content

Commit

Permalink
unused
Browse files Browse the repository at this point in the history
  • Loading branch information
denysoblohin-okta committed Dec 6, 2022
1 parent 096777c commit cb36530
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/support/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,8 +465,8 @@ util.disableLeaderElection = function() {
jest.spyOn(ServiceManager.prototype, 'isLeaderRequired').mockReturnValue(false);
};

util.mockLeader = function(isLeader = true) {
jest.spyOn(ServiceManager.prototype, 'isLeader').mockReturnValue(isLeader);
util.mockLeader = function() {
jest.spyOn(ServiceManager.prototype, 'isLeader').mockReturnValue(true);
};

export default util;

0 comments on commit cb36530

Please sign in to comment.