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

Function getStateValue

test/unit/test-url-replacements.js:663–666  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

661 env.sandbox.stub(Services, 'bindForDocOrNull').returns(
662 Promise.resolve({
663 getStateValue(key) {
664 expect(key).to.equal('foo.bar');
665 return Promise.resolve('baz');
666 },
667 })
668 );
669 return Services.urlReplacementsForDoc(win.document.documentElement)

Callers

nothing calls this directly

Calls 2

expectFunction · 0.85
resolveMethod · 0.80

Tested by

no test coverage detected