Skip to content

Commit a0950fb

Browse files
committed
Fixed tests
1 parent ee9af93 commit a0950fb

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

tests/unit/index-nodetest.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ describe('redis plugin', function() {
162162

163163
return previous;
164164
}, []);
165-
assert.equal(messages.length, 6);
165+
assert.equal(messages.length, 7);
166166
});
167167
it('adds default config to the config object', function() {
168168
plugin.configure(context);
@@ -200,7 +200,7 @@ describe('redis plugin', function() {
200200

201201
return previous;
202202
}, []);
203-
assert.equal(messages.length, 5);
203+
assert.equal(messages.length, 6);
204204
});
205205
it('does not add default config to the config object', function() {
206206
plugin.configure(context);
@@ -239,7 +239,7 @@ describe('redis plugin', function() {
239239

240240
return previous;
241241
}, []);
242-
assert.equal(messages.length, 4);
242+
assert.equal(messages.length, 5);
243243
});
244244

245245
it('does not add default config to the config object', function() {
@@ -274,13 +274,14 @@ describe('redis plugin', function() {
274274
keyPrefix: 'test-prefix',
275275
filePattern: 'tests/index.html',
276276
revisionKey: '123abc',
277-
redisClient: function(context) {
277+
redisDeployClient: function(context) {
278278
return context.redisClient || new Redis(context.config.redis);
279279
}
280280
}
281281
}
282282
};
283283
plugin.beforeHook(context);
284+
plugin.configure(context);
284285

285286
return assert.isFulfilled(plugin.upload(context))
286287
.then(function(result) {
@@ -310,7 +311,7 @@ describe('redis plugin', function() {
310311
keyPrefix: 'test-prefix',
311312
filePattern: 'tests/index.html',
312313
revisionKey: '123abc',
313-
redisClient: function(context){ return context.redisClient; }
314+
redisDeployClient: function(context){ return context.redisClient; }
314315
}
315316
}
316317
};
@@ -341,7 +342,7 @@ describe('redis plugin', function() {
341342
keyPrefix: 'test-prefix',
342343
filePattern: 'tests/index.html',
343344
revisionKey: '123abc',
344-
redisClient: function(context) {
345+
redisDeployClient: function(context) {
345346
return context.redisClient || new Redis(context.config.redis);
346347
}
347348
}

0 commit comments

Comments
 (0)