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

Function mock

test/jasmine/tests/plot_api_test.js:574–585  ·  view source on GitHub ↗
(gd)

Source from the content-addressed store, hash-verified

572 });
573
574 function mock(gd) {
575 mockedMethods.forEach(function (m) {
576 subroutines[m].calls.reset();
577 });
578 Axes.draw.calls.reset();
579
580 supplyAllDefaults(gd);
581 Plots.supplyDefaults.calls.reset();
582 Plots.doCalcdata(gd);
583 gd.emit = function () {};
584 return gd;
585 }
586
587 function expectModeBarOnly(msg) {
588 expect(gd.calcdata).toBeDefined(msg);

Callers 1

plot_api_test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…