consolidating scripts
[dygraphs.git] / auto_tests / tests / custom_asserts.js
1 /**
2 * @fileoverview Assertions that chai doesn't provide out of the box.
3 */
4
5 export function assertDeepCloseTo(actualArray, expectedArray, epsilon) {
6 assert.isArray(actualArray);
7 assert.isArray(expectedArray);
8 for (var i = 0; i < actualArray.length; i++) {
9 assert.closeTo(actualArray[i], expectedArray[i], epsilon);
10 }
11 };