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

Function assertEventData

test/jasmine/tests/scattergl_select_test.js:70–80  ·  view source on GitHub ↗
(actual, expected)

Source from the content-addressed store, hash-verified

68 });
69
70 function assertEventData(actual, expected) {
71 expect(actual.points.length).toBe(expected.points.length);
72
73 expected.points.forEach(function(e, i) {
74 var a = actual.points[i];
75 if(a) {
76 expect(a.x).toBe(e.x, 'x');
77 expect(a.y).toBe(e.y, 'y');
78 }
79 });
80 }
81
82 var mockFancy = require('../../image/mocks/gl2d_14.json');
83 delete mockFancy.layout.xaxis.autorange;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…