From e439a5ba9a844e010b329df1df6c0b16e27c9933 Mon Sep 17 00:00:00 2001 From: Bryan Donovan Date: Thu, 8 Oct 2015 16:31:28 -0700 Subject: [PATCH] unit test note --- test/multi_caching.unit.js | 4 ++++ 1 file changed, 4 insertions(+) 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'); });