( scope: SwTestHarness, appVersionManifest: Manifest, assetPath: string, )
| 2862 | })(); |
| 2863 | |
| 2864 | async function removeAssetFromCache( |
| 2865 | scope: SwTestHarness, |
| 2866 | appVersionManifest: Manifest, |
| 2867 | assetPath: string, |
| 2868 | ) { |
| 2869 | const assetGroupName = appVersionManifest.assetGroups?.find((group) => |
| 2870 | group.urls.includes(assetPath), |
| 2871 | )?.name; |
| 2872 | const cacheName = `${sha1(JSON.stringify(appVersionManifest))}:assets:${assetGroupName}:cache`; |
| 2873 | const cache = await scope.caches.open(cacheName); |
| 2874 | return cache.delete(assetPath); |
| 2875 | } |
| 2876 | |
| 2877 | async function makeRequest( |
| 2878 | scope: SwTestHarness, |
no test coverage detected
searching dependent graphs…