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

Function assertUpdateCase

test/jasmine/tests/range_selector_test.js:252–261  ·  view source on GitHub ↗
(buttonLayout, range0out, range1)

Source from the content-addressed store, hash-verified

250 // range0out: expected resulting range[0] (input is always '1948-01-01')
251 // range1: input range[1], expected to also be the output
252 function assertUpdateCase(buttonLayout, range0out, range1) {
253 var axisLayout = setupAxis({
254 _name: 'xaxis',
255 range: ['1948-01-01', range1]
256 });
257
258 var update = getUpdateObject(axisLayout, buttonLayout);
259
260 assertRanges(update, range0out, range1);
261 }
262
263 it('should return update object (1 month backward case)', function() {
264 var buttonLayout = {

Callers 1

Calls 2

setupAxisFunction · 0.85
assertRangesFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…