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

Function assertCloseTo

test/jasmine/assets/check_transitions.js:118–122  ·  view source on GitHub ↗
(A, B, tolerance, cb, msg)

Source from the content-addressed store, hash-verified

116}
117
118function assertCloseTo(A, B, tolerance, cb, msg) {
119 var a = cb(A).flat();
120 var b = cb(B).flat();
121 expect(a).withContext(msg + ' equal to ' + JSON.stringify(A)).toBeWithinArray(b, tolerance);
122}
123
124function extractNumbers(array) {
125 return array.map(function(d) {

Callers 1

assertFunction · 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…