diff --git a/test/multi_caching.unit.js b/test/multi_caching.unit.js index dbe5c6d..f33f70d 100644 --- a/test/multi_caching.unit.js +++ b/test/multi_caching.unit.js @@ -569,7 +569,11 @@ describe("multiCaching", function() { store: 'memory', ttl: memoryTtl }); + + // This simulates how node-cache-manager-redis sets its + // isCacheableValue function: memoryCache4.store.isCacheableValue = testCallbacks.isCacheableValue; + multiCache = multiCaching([memoryCache4]); sinon.spy(memoryCache4.store, 'set'); });