From e47b092341d73a0a5bbc4b35283d7ea7e2eb8188 Mon Sep 17 00:00:00 2001 From: Tirke Date: Wed, 3 Jul 2024 17:16:56 +0200 Subject: [PATCH] fix: add back commented code --- .../lib/node-cache-manager-ioredis.spec.ts | 54 +++++++++---------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/packages/node-cache-manager-ioredis/src/lib/node-cache-manager-ioredis.spec.ts b/packages/node-cache-manager-ioredis/src/lib/node-cache-manager-ioredis.spec.ts index 13332f89..fc28873b 100644 --- a/packages/node-cache-manager-ioredis/src/lib/node-cache-manager-ioredis.spec.ts +++ b/packages/node-cache-manager-ioredis/src/lib/node-cache-manager-ioredis.spec.ts @@ -16,33 +16,33 @@ const config = { } beforeEach(async () => { - // redisCache = await caching(ioRedisStore, { - // instanceConfig: { - // host: config.host, - // port: config.port, - // password: config.password, - // db: config.db, - // }, - // }) - // - // await redisCache.reset() - // - // customRedisCache = await caching(ioRedisStore, { - // instanceConfig: { - // host: config.host, - // port: config.port, - // password: config.password, - // db: config.db, - // }, - // isCacheable: (val) => { - // if (val === undefined) { - // return true - // } - // return val !== 'FooBarString' - // }, - // }) - // - // await customRedisCache.reset() + redisCache = await caching(ioRedisStore, { + instanceConfig: { + host: config.host, + port: config.port, + password: config.password, + db: config.db, + }, + }) + + await redisCache.reset() + + customRedisCache = await caching(ioRedisStore, { + instanceConfig: { + host: config.host, + port: config.port, + password: config.password, + db: config.db, + }, + isCacheable: (val) => { + if (val === undefined) { + return true + } + return val !== 'FooBarString' + }, + }) + + await customRedisCache.reset() }) describe('init', () => {