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

Function getStoredTime

test/unit/test-cid.js:462–464  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

460 const expected =
461 'sha384(sha384([1,2,3,0,0,0,0,0,0,0,0,0,0,0,0,15])http://www.origin.come2)';
462 function getStoredTime() {
463 return JSON.parse(storage['amp-cid']).time;
464 }
465 clock.tick(100);
466 return compare('e2', expected).then(() => {
467 seed = 2;

Callers 1

test-cid.jsFile · 0.85

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected