MCPcopy
hub / github.com/angular/angular / assertPresent

Method assertPresent

packages/zone.js/lib/zone-spec/proxy.ts:48–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46 }
47
48 static assertPresent(): ProxyZoneSpec {
49 const spec = ProxyZoneSpec.get();
50 if (spec === undefined) {
51 throw new Error(`Expected to be running in 'ProxyZone', but it was not found.`);
52 }
53 return spec;
54 }
55
56 constructor(private defaultSpecDelegate: ZoneSpec | null = null) {
57 this.setDelegate(defaultSpecDelegate);

Callers 5

fake_async_spec.tsFile · 0.80
runInTestZoneFunction · 0.80
fakeAsyncFnFunction · 0.80
proxy.spec.tsFile · 0.80

Calls 1

getMethod · 0.65

Tested by

no test coverage detected