[misc] test/unit: loosely match the passed redis options

The rewrite will pass a cloned object through.
This commit is contained in:
Jakob Ackermann 2020-11-09 17:40:25 +00:00
parent 4aebc1b0b6
commit d827b521c6

View file

@ -72,7 +72,7 @@ describe('index', function () {
return it('should call createClient for the ioredis driver in single-instance mode if a non array is passed', function () {
const client = this.redis.createClient(this.standardOpts)
return this.ioredisConstructor
.calledWith(this.standardOpts)
.calledWith(sinon.match(this.standardOpts))
.should.equal(true)
})
})