From 18fa1842305616b102aaef550446dc924f1dcfce Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Mon, 9 Nov 2020 15:59:53 +0000 Subject: [PATCH] [misc] drop references for 'redis' package from unit tests --- libraries/redis-wrapper/test.coffee | 7 ------- 1 file changed, 7 deletions(-) diff --git a/libraries/redis-wrapper/test.coffee b/libraries/redis-wrapper/test.coffee index 83ccdb2703..e3586ee735 100644 --- a/libraries/redis-wrapper/test.coffee +++ b/libraries/redis-wrapper/test.coffee @@ -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", ->