MCPcopy Create free account
hub / github.com/ampproject/amphtml / assertInvocation

Function assertInvocation

test/unit/test-action.js:53–74  ·  view source on GitHub ↗
(
  inv,
  node,
  method,
  source,
  caller,
  opt_event,
  child,
  opt_args
)

Source from the content-addressed store, hash-verified

51}
52
53function assertInvocation(
54 inv,
55 node,
56 method,
57 source,
58 caller,
59 opt_event,
60 child,
61 opt_args
62) {
63 expect(inv.node).to.equal(node);
64 expect(inv.method).to.equal(method);
65 expect(inv.caller).to.equal(caller);
66
67 if (opt_event !== undefined) {
68 expect(inv.event).to.equal(opt_event);
69 }
70
71 if (opt_args !== undefined) {
72 expect(inv.args).to.deep.equal(opt_args);
73 }
74}
75
76describes.sandboxed('ActionService parseAction', {}, () => {
77 function parseMultipleActions(s) {

Callers 1

test-action.jsFile · 0.85

Calls 1

expectFunction · 0.85

Tested by

no test coverage detected