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

Function runOnlyCallback

packages/common/http/test/jsonp_spec.ts:34–39  ·  view source on GitHub ↗
(home: any, data: Object)

Source from the content-addressed store, hash-verified

32 let backend: JsonpClientBackend;
33
34 function runOnlyCallback(home: any, data: Object) {
35 const keys = Object.keys(home);
36 expect(keys.length).toBe(1);
37 const callback = home[keys[0]];
38 callback(data);
39 }
40
41 beforeEach(() => {
42 const mockDoc = new MockDocument();

Callers 1

jsonp_spec.tsFile · 0.85

Calls 2

keysMethod · 0.65
callbackFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…