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

Function _assert

test/jasmine/tests/plots_test.js:386–391  ·  view source on GitHub ↗
(exp)

Source from the content-addressed store, hash-verified

384 gd.style.height = '150px';
385
386 function _assert(exp) {
387 var margin = gd._fullLayout.margin || {};
388 for(var k in exp) {
389 expect(margin[k]).toBe(exp[k], ' - margin.' + k);
390 }
391 }
392
393 Plotly.newPlot(gd, [], {})
394 .then(function() { _assert({l: 74, r: 74, t: 82, b: 66}); })

Callers 1

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