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

Function _assert

test/jasmine/tests/plot_api_test.js:698–710  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

696 var seq = ['doAutoRangeAndConstraints', 'drawData', 'finalDraw'];
697
698 function _assert(msg) {
699 expect(gd.calcdata).toBeDefined();
700 mockedMethods.forEach(function (m) {
701 expect(subroutines[m].calls.count()).toBe(
702 seq.indexOf(m) === -1 ? 0 : 1,
703 '# of ' + m + ' calls - ' + msg
704 );
705 });
706 expect(Axes.draw).toHaveBeenCalledTimes(1);
707 expect(Axes.draw.calls.allArgs()[0][1]).toEqual(['x']);
708 expect(Axes.draw.calls.allArgs()[0][2]).toEqual({ skipTitle: true }, 'skip-axis-title argument');
709 expect(Plots.supplyDefaults).not.toHaveBeenCalled();
710 }
711
712 var specs = [
713 ['relayout', ['xaxis.range[0]', 0]],

Callers 1

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