MCPcopy
hub / github.com/plotly/plotly.js / assertEventPointData

Function assertEventPointData

test/jasmine/tests/polar_test.js:696–710  ·  view source on GitHub ↗
(expected, msg)

Source from the content-addressed store, hash-verified

694 }
695
696 function assertEventPointData(expected, msg) {
697 var actual = eventData.points || [];
698
699 expect(actual.length)
700 .toBe(expected.length, msg + ' same number of pts');
701
702 expected.forEach(function(e, i) {
703 var a = actual[i];
704 var m = msg + ' (pt ' + i + ')';
705
706 for(var k in e) {
707 expect(a[k]).toBeCloseTo(e[k], 1, m + ' ' + k);
708 }
709 });
710 }
711
712 function assertEventCnt(expected, msg) {
713 eventNames.forEach(function(k) {

Callers 1

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