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

Function _assert

test/jasmine/tests/treemap_test.js:1345–1350  ·  view source on GitHub ↗
(msg, exp)

Source from the content-addressed store, hash-verified

1343 var mock = Lib.extendDeep({}, require('../../image/mocks/treemap_first.json'));
1344
1345 function _assert(msg, exp) {
1346 return function () {
1347 var layer = d3Select(gd).select('.treemaplayer');
1348 expect(layer.selectAll('.trace').size()).toBe(exp, msg);
1349 };
1350 }
1351
1352 Plotly.newPlot(gd, mock)
1353 .then(_assert('base', 2))

Callers 1

treemap_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…