Merge pull request #588 from danvk/299-clean
[dygraphs.git] / auto_tests / tests / custom_asserts.js
... / ...
CommitLineData
1/**
2 * @fileoverview Assertions that chai doesn't provide out of the box.
3 */
4
5var assertDeepCloseTo = function(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};