MCPcopy Index your code
hub / github.com/plotly/plotly.js / assertEventCnt

Function assertEventCnt

test/jasmine/tests/smith_test.js:243–253  ·  view source on GitHub ↗
(expected, msg)

Source from the content-addressed store, hash-verified

241 }
242
243 function assertEventCnt(expected, msg) {
244 eventNames.forEach(function(k) {
245 var m = msg + ' event cnt for ' + k;
246
247 if(k in expected) {
248 expect(eventCnts[k]).toBe(expected[k], m);
249 } else {
250 expect(eventCnts[k]).toBe(0, m);
251 }
252 });
253 }
254
255 function _hover(pos) {
256 eventData = '';

Callers 2

_assertFunction · 0.70
smith_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…