Skip to content

Commit

Permalink
Fixes row test case that was comparing key values of the SVG to the f…
Browse files Browse the repository at this point in the history
…ilters. The key is numeric and not a string.
  • Loading branch information
mtraynham committed Apr 2, 2014
1 parent 2963c4f commit 18e593e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/row-chart-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ describe('dc.rowChart', function() {
chart.filter('22');
chart.render();
chart.selectAll('g.row rect').each(function (d) {
if (d.key === '66' || d.key === '22') {
if (d.key === 66 || d.key === 22) {
expect(d3.select(this).classed('selected')).toBeTruthy();
expect(d3.select(this).classed('deselected')).toBeFalsy();
} else {
Expand Down

0 comments on commit 18e593e

Please sign in to comment.