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

Function assertDataPts

test/jasmine/tests/map_test.js:896–907  ·  view source on GitHub ↗
(lengths)

Source from the content-addressed store, hash-verified

894
895 it('@gl should be able to update traces', function(done) {
896 function assertDataPts(lengths) {
897 var lines = getGeoJsonData(gd, 'lines');
898 var markers = getGeoJsonData(gd, 'markers');
899
900 lines.forEach(function(obj, i) {
901 expect(obj.coordinates[0].length).toEqual(lengths[i]);
902 });
903
904 markers.forEach(function(obj, i) {
905 expect(obj.features.length).toEqual(lengths[i]);
906 });
907 }
908
909 assertDataPts([3, 3]);
910

Callers 1

map_test.jsFile · 0.85

Calls 1

getGeoJsonDataFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…