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

Function _assert

test/jasmine/tests/map_test.js:793–800  ·  view source on GitHub ↗
(color)

Source from the content-addressed store, hash-verified

791 }
792
793 function _assert(color) {
794 var mapInfo = getMapInfo(gd);
795 var layer = mapInfo.layers[mapInfo.layoutLayers[0]];
796
797 expect(mapInfo.layoutLayers.length).toBe(1, 'one layer');
798 expect(mapInfo.layoutSources.length).toBe(1, 'one layer source');
799 expect(String(layer.paint._values['fill-color'].value.value)).toBe(color, 'layer color');
800 }
801
802 // TODO
803 // this one now logs:

Callers 1

map_test.jsFile · 0.70

Calls 3

getMapInfoFunction · 0.85
_assertLayoutFunction · 0.85
getLayerIdsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…