MCPcopy Index your code
hub / github.com/ampproject/amphtml / parseAction

Function parseAction

test/unit/test-action.js:87–94  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

85 }
86
87 function parseAction(s) {
88 const actions = parseMultipleActions(s);
89 if (actions == null) {
90 return null;
91 }
92 expect(actions).to.have.length(1);
93 return actions[0];
94 }
95
96 it('should parse full form', () => {
97 const a = parseAction('event1:target1.method1');

Callers 1

test-action.jsFile · 0.85

Calls 3

parseMultipleActionsFunction · 0.85
expectFunction · 0.85
lengthMethod · 0.80

Tested by

no test coverage detected