mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
[misc] drop references for 'redis' package from unit tests
This commit is contained in:
parent
90ad28c51c
commit
18fa184230
1 changed files with 0 additions and 7 deletions
|
@ -11,13 +11,8 @@ describe "index", ->
|
|||
beforeEach ->
|
||||
|
||||
@settings = {}
|
||||
@normalRedisClient =
|
||||
get: ->
|
||||
on: ->
|
||||
@ioredisConstructor = ioredisConstructor = sinon.stub()
|
||||
|
||||
@normalRedis =
|
||||
createClient: sinon.stub().returns(@normalRedisClient)
|
||||
@ioredis = class IoRedis
|
||||
constructor: ioredisConstructor
|
||||
on: sinon.stub()
|
||||
|
@ -25,7 +20,6 @@ describe "index", ->
|
|||
constructor: (@config, @options) ->
|
||||
on: sinon.stub()
|
||||
@redis = SandboxedModule.require modulePath, requires:
|
||||
"redis":@normalRedis
|
||||
"ioredis": @ioredis
|
||||
@auth_pass = "1234 pass"
|
||||
|
||||
|
@ -38,7 +32,6 @@ describe "index", ->
|
|||
|
||||
it "should use the ioredis driver in single-instance mode if a non array is passed", ->
|
||||
client = @redis.createClient @standardOpts
|
||||
@normalRedis.createClient.called.should.equal false
|
||||
assert.equal(client.constructor, @ioredis)
|
||||
|
||||
it "should call createClient for the ioredis driver in single-instance mode if a non array is passed", ->
|
||||
|
|
Loading…
Reference in a new issue