Merge pull request #2310 from jachstet-sea/fix_Test

Fix test/defaultConfig.tests.js after PR #2308
This commit is contained in:
Evert Timberg 2016-04-20 10:36:14 -04:00
commit 2bd9778e68

View File

@ -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);
});
@ -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]);
});
});
});