Skip to content

Commit

Permalink
unused
Browse files Browse the repository at this point in the history
  • Loading branch information
denysoblohin-okta committed Dec 7, 2022
1 parent 2661cb7 commit 1d6bf59
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 1d6bf59

Please sign in to comment.