MCPcopy
hub / github.com/angular/angular / withHead

Function withHead

packages/private/testing/src/utils.ts:70–75  ·  view source on GitHub ↗
(
  html: string,
  blockFn: () => Promise<unknown> | void,
)

Source from the content-addressed store, hash-verified

68 * @param blockFn function to wrap. The function can return promise or be `async`.
69 */
70export function withHead(
71 html: string,
72 blockFn: () => Promise<unknown> | void,
73): jasmine.ImplementationCallback {
74 return wrapTestFn(() => document.head, html, blockFn);
75}
76
77/**
78 * Wraps provided function (which typically contains the code of a test) into a new function that

Callers 1

Calls 1

wrapTestFnFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…