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

Function assertArrayField

test/jasmine/tests/funnel_test.js:1607–1612  ·  view source on GitHub ↗
(calcData, prop, expectation)

Source from the content-addressed store, hash-verified

1605}
1606
1607function assertArrayField(calcData, prop, expectation) {
1608 var values = Lib.nestedProperty(calcData, prop).get();
1609 if(!Array.isArray(values)) values = [values];
1610
1611 expect(values).toBeCloseToArray(expectation, undefined, '(field ' + prop + ')');
1612}
1613
1614function assertPointField(calcData, prop, expectation) {
1615 var values = [];

Callers 1

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