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

Function assertTraceField

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

Source from the content-addressed store, hash-verified

1626}
1627
1628function assertTraceField(calcData, prop, expectation) {
1629 var values = calcData.map(function(calcTrace) {
1630 return Lib.nestedProperty(calcTrace[0], prop).get();
1631 });
1632
1633 expect(values).toBeCloseToArray(expectation, undefined, '(field ' + prop + ')');
1634}
1635
1636describe('funnel uniformtext', function() {
1637 'use strict';

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…