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

Function assertEventPointData

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

Source from the content-addressed store, hash-verified

225 }
226
227 function assertEventPointData(expected, msg) {
228 var actual = eventData.points || [];
229
230 expect(actual.length)
231 .toBe(expected.length, msg + ' same number of pts');
232
233 expected.forEach(function(e, i) {
234 var a = actual[i];
235 var m = msg + ' (pt ' + i + ')';
236
237 for(var k in e) {
238 expect(a[k]).toBeCloseTo(e[k], 1, m + ' ' + k);
239 }
240 });
241 }
242
243 function assertEventCnt(expected, msg) {
244 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…