Fix eslint
This commit is contained in:
parent
cf28e23d8e
commit
bf1dbb68b8
7 changed files with 541 additions and 22 deletions
|
@ -1,3 +1,5 @@
|
|||
/* global describe, it */
|
||||
|
||||
var DocumentHandler = require('../lib/document_handler');
|
||||
var Generator = require('../lib/key_generators/random');
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* global it, describe, afterEach */
|
||||
|
||||
var RedisDocumentStore = require('../lib/document_stores/redis');
|
||||
|
||||
var winston = require('winston');
|
||||
|
@ -12,7 +14,7 @@ describe('redis_document_store', function() {
|
|||
RedisDocumentStore.client = false;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
describe('set', function() {
|
||||
|
||||
it('should be able to set a key and have an expiration set', function(done) {
|
||||
|
@ -37,7 +39,7 @@ describe('redis_document_store', function() {
|
|||
|
||||
it('should not set an expiration when expiration is off', function(done) {
|
||||
var store = new RedisDocumentStore({ expire: false });
|
||||
store.set('hello3', 'world', function(worked) {
|
||||
store.set('hello3', 'world', function() {
|
||||
RedisDocumentStore.client.ttl('hello3', function(err, res) {
|
||||
res.should.equal(-1);
|
||||
done();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue