Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
import
{Deferred, LastAddedResolver} from
'#core/data-structures/promise'
;
2
3
describes.sandboxed(
'data structures - PromiseUtils'
, {}, () => {
4
const
getPromiseObject = () =>
new
Deferred();
Callers
nothing calls this directly
Calls
6
getPromiseObject
Function · 0.85
expect
Function · 0.85
resolve
Method · 0.80
it
Function · 0.50
add
Method · 0.45
then
Method · 0.45
Tested by
no test coverage detected