MCPcopy Index your code
hub / github.com/angular/angular / getLatestHashFromDb

Function getLatestHashFromDb

packages/service-worker/worker/test/happy_spec.ts:2447–2447  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2445 // Ensure the data has been stored in the DB.
2446 const db: MockCache = (await scope.caches.open('db:control')) as any;
2447 const getLatestHashFromDb = async () => (await (await db.match('/latest')).json()).latest;
2448 expect(await getLatestHashFromDb()).toBe(manifestHash);
2449
2450 // Change the latest hash to not correspond to any manifest.

Callers 1

happy_spec.tsFile · 0.85

Calls 2

jsonMethod · 0.80
matchMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…