MCPcopy Create free account
hub / github.com/aurelia/binding / createScopeForTest

Function createScopeForTest

src/scope.js:46–57  ·  view source on GitHub ↗
(bindingContext: any, parentBindingContext?: any)

Source from the content-addressed store, hash-verified

44}
45
46export function createScopeForTest(bindingContext: any, parentBindingContext?: any): Scope {
47 if (parentBindingContext) {
48 return {
49 bindingContext,
50 overrideContext: createOverrideContext(bindingContext, createOverrideContext(parentBindingContext))
51 };
52 }
53 return {
54 bindingContext,
55 overrideContext: createOverrideContext(bindingContext)
56 };
57}

Calls 1

createOverrideContextFunction · 0.70

Tested by 1

exerciseBindingBehaviorFunction · 0.72