Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/ampproject/amphtml
/ then
Function
then
test/unit/preact/component/test-renderer.js:35–37 ·
view source on GitHub ↗
(callback)
Source
from the content-addressed store, hash-verified
33
let
renderCallback;
34
const
render = env.sandbox.stub().callsFake((data) => ({
35
then(callback) {
36
renderCallback = () => callback(data.value);
37
},
38
}));
39
function
resolve() {
40
renderCallback();
Callers
nothing calls this directly
Calls
2
callback
Function · 0.50
push
Method · 0.45
Tested by
no test coverage detected