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

Function _assert

test/jasmine/tests/sunburst_test.js:1032–1037  ·  view source on GitHub ↗
(msg, exp)

Source from the content-addressed store, hash-verified

1030 var mock = Lib.extendDeep({}, require('../../image/mocks/sunburst_first.json'));
1031
1032 function _assert(msg, exp) {
1033 return function () {
1034 var layer = d3Select(gd).select('.sunburstlayer');
1035 expect(layer.selectAll('.trace').size()).toBe(exp, msg);
1036 };
1037 }
1038
1039 Plotly.newPlot(gd, mock)
1040 .then(_assert('base', 2))

Callers 1

sunburst_test.jsFile · 0.70

Calls 2

trimFunction · 0.70
fnFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…