Skip to content

Commit

Permalink
Merge pull request andrewplummer#272 from alFReD-NSH/test-errors
Browse files Browse the repository at this point in the history
Fix dateEqual error not showing right file in test reports
  • Loading branch information
andrewplummer committed Feb 19, 2013
2 parents 2e14896 + 6b8bc0f commit 4e8d7b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unit_tests/javascripts/date_helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ dateEqual = function(a, b, message) {
b = d;
}
var offset = Math.abs(a.getTime() - b.getTime());
equal(offset < buffer, true, message + ' | expected: ' + b.format(format) + ' got: ' + a.format(format));
equal(offset < buffer, true, message + ' | expected: ' + b.format(format) + ' got: ' + a.format(format), null, 1);
}

dateRangeEqual = function(a, b, message) {
Expand Down

0 comments on commit 4e8d7b0

Please sign in to comment.