Skip to content

Commit

Permalink
Keep options as redis property
Browse files Browse the repository at this point in the history
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
  • Loading branch information
xpol authored and stipsan committed Jan 29, 2023
1 parent 9213bc7 commit 9596544
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ class RedisMock extends EventEmitter {
this.connected = true
emitConnectEvent(this)
}
this.options = optionsWithDefault;
}

get channels() {
Expand Down

0 comments on commit 9596544

Please sign in to comment.