From 95965440ecbac18c7917bba4f30ff73701158bca Mon Sep 17 00:00:00 2001 From: xpol Date: Wed, 21 Dec 2022 19:42:07 +0800 Subject: [PATCH] Keep options as redis property This is required because some libraries will access the `.options` of Redis. E.g. https://github.com/swarthy/redis-semaphore/blob/master/src/utils/index.ts#L12 --- src/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.js b/src/index.js index 88401a747..c90b33c91 100644 --- a/src/index.js +++ b/src/index.js @@ -113,6 +113,7 @@ class RedisMock extends EventEmitter { this.connected = true emitConnectEvent(this) } + this.options = optionsWithDefault; } get channels() {