(allowlist, mockBindings)
| 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( |