Use expanded caching API to simplify usage.

This commit is contained in:
Logan Smyth
2017-11-14 17:26:50 -08:00
parent 3942862a2a
commit bbff566024
3 changed files with 43 additions and 60 deletions

View File

@@ -221,12 +221,6 @@ describe("caching API", () => {
assert.equal(fn("two"), fn("two"));
});
it("should throw if caching is never configured and not defaulting", () => {
const fn = makeStrongCache(() => {}, false /* autoPermacache */);
assert.throws(() => fn(), /Error: Caching was left unconfigured./);
});
it("should auto-permacache by default", () => {
let count = 0;