Skip to content

Commit

Permalink
fix: add back commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
Tirke committed Jul 3, 2024
1 parent 043e08e commit e47b092
Showing 1 changed file with 27 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit e47b092

Please sign in to comment.