Browse Source

unit test note

feature/fix-isCacheableValue-usage
Bryan Donovan 10 years ago
parent
commit
e439a5ba9a
  1. 4
      test/multi_caching.unit.js

4
test/multi_caching.unit.js

@ -569,7 +569,11 @@ describe("multiCaching", function() {
store: 'memory', store: 'memory',
ttl: memoryTtl ttl: memoryTtl
}); });
// This simulates how node-cache-manager-redis sets its
// isCacheableValue function:
memoryCache4.store.isCacheableValue = testCallbacks.isCacheableValue; memoryCache4.store.isCacheableValue = testCallbacks.isCacheableValue;
multiCache = multiCaching([memoryCache4]); multiCache = multiCaching([memoryCache4]);
sinon.spy(memoryCache4.store, 'set'); sinon.spy(memoryCache4.store, 'set');
}); });

Loading…
Cancel
Save