MCPcopy
hub / github.com/angular/angular / createSwForMaxAge

Function createSwForMaxAge

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

Source from the content-addressed store, hash-verified

2844 });
2845
2846 function createSwForMaxAge() {
2847 const scope = new SwTestHarnessBuilder().build();
2848 // set the timestamp of the manifest using the server time so it's always "new" on test start
2849 const maxAgeManifest: Manifest = {
2850 ...manifest,
2851 timestamp: scope.time,
2852 applicationMaxAge: 2000,
2853 };
2854 const server = serverBuilderBase.withManifest(maxAgeManifest).build();
2855 const driver = new Driver(scope, scope, new CacheDatabase(scope));
2856 scope.updateServerState(server);
2857
2858 return {server, scope, driver};
2859 }
2860 });
2861 });
2862})();

Callers 1

happy_spec.tsFile · 0.85

Calls 3

withManifestMethod · 0.80
updateServerStateMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…