UNPKG

dcos-dygraphs

Version:

dygraphs is a fast, flexible open source JavaScript charting library.

12 lines (10 loc) 335 B
/** * @fileoverview Assertions that chai doesn't provide out of the box. */ export function assertDeepCloseTo(actualArray, expectedArray, epsilon) { assert.isArray(actualArray); assert.isArray(expectedArray); for (var i = 0; i < actualArray.length; i++) { assert.closeTo(actualArray[i], expectedArray[i], epsilon); } };