Bug fix: indexFromSetName on invisible sets (#771)
[dygraphs.git] / auto_tests / tests / custom_asserts.js
... / ...
CommitLineData
1/**
2 * @fileoverview Assertions that chai doesn't provide out of the box.
3 */
4
5export 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};