[misc] rewrite: free functions

This commit is contained in:
Jakob Ackermann
2020-11-10 10:10:22 +00:00
parent da8bef821b
commit 4aebc1b0b6
2 changed files with 118 additions and 119 deletions
@@ -126,7 +126,8 @@ describe('index', function () {
this.results = []
this.multiOrig = { exec: sinon.stub().yields(null, this.results) }
this.client = { multi: sinon.stub().returns(this.multiOrig) }
this.redis._monkeyPatchIoredisExec(this.client)
this.ioredisConstructor.returns(this.client)
this.redis.createClient(this.client)
return (this.multi = this.client.multi())
})