MCPcopy Create free account
hub / github.com/ampproject/amphtml / test-promise.js

File test-promise.js

test/unit/core/data-structures/test-promise.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import {Deferred, LastAddedResolver} from '#core/data-structures/promise';
2
3describes.sandboxed('data structures - PromiseUtils', {}, () => {
4 const getPromiseObject = () => new Deferred();

Callers

nothing calls this directly

Calls 6

getPromiseObjectFunction · 0.85
expectFunction · 0.85
resolveMethod · 0.80
itFunction · 0.50
addMethod · 0.45
thenMethod · 0.45

Tested by

no test coverage detected