MCPcopy Create free account
hub / github.com/plotly/plotly.js / assertSpies

Function assertSpies

test/jasmine/tests/splom_test.js:1078–1086  ·  view source on GitHub ↗
(msg, exp)

Source from the content-addressed store, hash-verified

1076 }
1077
1078 function assertSpies(msg, exp) {
1079 methods.forEach(function(m, i) {
1080 var obj = m[0];
1081 var k = m[1];
1082 var expi = exp[i];
1083 expect(obj[k]).toHaveBeenCalledTimes(expi[1], expi[0]);
1084 obj[k].calls.reset();
1085 });
1086 }
1087
1088 function toPlainArray(typedArray) {
1089 return Array.prototype.slice.call(typedArray);

Callers 1

splom_test.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…