Skip to content
Merged
Changes from all commits
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
4 changes: 2 additions & 2 deletions test/defaultConfig.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ describe('Test the doughnut chart default config', function() {
}]
}
};
var expectedLegend = '<ul class="mychart-legend"><li><span style="background-color:red">label1</span></li><li><span style="background-color:green">label2</span></li></ul>';
var expectedLegend = '<ul class="mychart-legend"><li><span style="background-color:red"></span>label1</li><li><span style="background-color:green"></span>label2</li></ul>';

expect(config.legendCallback(chart)).toBe(expectedLegend);
});
Expand Down Expand Up @@ -290,4 +290,4 @@ describe('Test the polar area chart default config', function() {
config.legend.onClick.call(scope, null, legendItem);
expect(chart.data.datasets[0].data).toEqual([10, 20, NaN]);
});
});
});