Skip to content

Fix heatmap brick generation edge cases #651

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jun 20, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion test/jasmine/assets/custom_matchers.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ module.exports = {
return Math.abs(expected[i] - element) < precision;
});

var passed = tested.indexOf(false) < 0;
var passed = (
expected.length === actual.length &&
Copy link
Contributor Author

@etpinard etpinard Jun 15, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

toBeCloseArray loops over the actual array which led to false positive assertions when the expected array is longer than the actual array.

The patch fixes this problem.

tested.indexOf(false) < 0
);

return {
pass: passed,
Expand Down