Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ampproject/amphtml
/ handler
Function
handler
test/unit/test-base-element.js:41–41 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
39
40
it(
'should register action'
, () => {
41
const
handler = () => {};
42
element.registerAction(
'method1'
, handler);
43
expect(element.actionMap_[
'method1'
]).to.not.be.null;
44
});
Callers
nothing calls this directly
Calls
1
expect
Function · 0.85
Tested by
no test coverage detected