MCPcopy Create free account
hub / github.com/angular/angular / viewWith

Function viewWith

packages/core/test/render3/node_animations_spec.ts:41–47  ·  view source on GitHub ↗
(animations: AnimationLViewData)

Source from the content-addressed store, hash-verified

39 // A view with no child nodes whose node 22 carries the given animation data, the way the
40 // animate instructions record it.
41 function viewWith(animations: AnimationLViewData): LView {
42 const lView: unknown[] = [];
43 lView[TVIEW] = {firstChild: null};
44 lView[ID] = 4242;
45 lView[ANIMATIONS] = animations;
46 return lView as unknown as LView;
47 }
48
49 beforeEach(() => {
50 resetAnimationRuntimeSupportForTests();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected