From d6b755b38ace476184a8035035b3e30745d80d8c Mon Sep 17 00:00:00 2001 From: colin Date: Wed, 27 Dec 2023 16:06:25 +0000 Subject: [PATCH] Delete test/redis_document_store_spec.js --- test/redis_document_store_spec.js | 69 ------------------------------- 1 file changed, 69 deletions(-) delete mode 100644 test/redis_document_store_spec.js diff --git a/test/redis_document_store_spec.js b/test/redis_document_store_spec.js deleted file mode 100644 index 05fbaf8..0000000 --- a/test/redis_document_store_spec.js +++ /dev/null @@ -1,69 +0,0 @@ -/* global it, describe, afterEach */ - -// var assert = require('assert'); -// var winston = require('winston'); -// winston.remove(winston.transports.Console); - -// var RedisDocumentStore = require('../lib/document_stores/redis'); - -// RedisDocumentStore.client.ttl('hello1', function(err, res) { -// if (err) { -// console.error("Redis TTL Error:", err); -// done(err); // This will fail the test and show the error -// } else { -// assert.ok(res > 1); -// done(); -// } -// }); - -// describe('redis_document_store', function() { - -// beforeEach(function(done) { -// // Initialize or reconnect to Redis here -// // Include any connection or retry logic here -// // Call done() once the connection is established -// done(); -// }); - -// afterEach(function() { -// if (RedisDocumentStore.client) { -// RedisDocumentStore.client.quit(); -// RedisDocumentStore.client = false; -// } -// }); - -// describe('set', function() { - -// it('should be able to set a key and have an expiration set', function(done) { -// var store = new RedisDocumentStore({ expire: 10 }); -// store.set('hello1', 'world', function() { -// RedisDocumentStore.client.ttl('hello1', function(err, res) { -// assert.ok(res > 1); -// done(); -// }); -// }); -// }); - -// it('should not set an expiration when told not to', function(done) { -// var store = new RedisDocumentStore({ expire: 10 }); -// store.set('hello2', 'world', function() { -// RedisDocumentStore.client.ttl('hello2', function(err, res) { -// assert.equal(-1, res); -// done(); -// }); -// }, true); -// }); - -// it('should not set an expiration when expiration is off', function(done) { -// var store = new RedisDocumentStore({ expire: false }); -// store.set('hello3', 'world', function() { -// RedisDocumentStore.client.ttl('hello3', function(err, res) { -// assert.equal(-1, res); -// done(); -// }); -// }); -// }); - -// }); - -// });