diff --git a/test/imf.test.ts b/test/imf.test.ts index 28012f5..0df00bb 100644 --- a/test/imf.test.ts +++ b/test/imf.test.ts @@ -233,7 +233,10 @@ describe("registry", () => { process.env["SECRYST_CACHE"] = undefined const first = await withBrowserHost(() => resolve("tiny-1.0", indexUrl)) expect([...first.bytes]).toEqual([...fixtureZip]) - expect(store.size).toBe(1) + // zip + the offline index copy (TODO.client-work 05) + expect(store.size).toBe(2) + const zipKeys = [...store.keys()].filter((k) => k.endsWith("tiny.zip")) + expect(zipKeys.length).toBe(1) // channel dies; the cached copy serves, still sha-verified channelUp = false