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

Function _assert

test/jasmine/tests/pie_test.js:824–829  ·  view source on GitHub ↗
(msg, exp)

Source from the content-addressed store, hash-verified

822 var mock = Lib.extendDeep({}, require('../../image/mocks/pie_title_multiple.json'));
823
824 function _assert(msg, exp) {
825 return function() {
826 var layer = d3Select(gd).select('.pielayer');
827 expect(layer.selectAll('.trace').size()).toBe(exp, msg);
828 };
829 }
830
831 Plotly.newPlot(gd, mock)
832 .then(_assert('base', 4))

Callers 1

pie_test.jsFile · 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…