MCPcopy Create free account
hub / github.com/ampproject/amphtml / createExpanderWithAllowlist

Function createExpanderWithAllowlist

test/unit/url-expander/test-expander.js:86–90  ·  view source on GitHub ↗
(allowlist, mockBindings)

Source from the content-addressed store, hash-verified

84 };
85
86 function createExpanderWithAllowlist(allowlist, mockBindings) {
87 variableSource = new GlobalVariableSource(env.ampdoc);
88 variableSource.variableAllowlist_ = allowlist;
89 return new Expander(variableSource, mockBindings);
90 }
91
92 it('should not replace unallowlisted RANDOM', () => {
93 const expander = createExpanderWithAllowlist(

Callers 1

test-expander.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected