Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
locker.unlock = sinon.spy(lock => { throw new redlock.LockError('fail!'); });
const tracker = createTracker('test', redis, locker);