]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix test/defaultConfig.tests.js after PR #2308 2310/head
authorJannis Achstetter <jannis.achstetter@schneider-electric.com>
Wed, 20 Apr 2016 14:02:05 +0000 (16:02 +0200)
committerJannis Achstetter <jannis.achstetter@schneider-electric.com>
Wed, 20 Apr 2016 14:02:05 +0000 (16:02 +0200)
test/defaultConfig.tests.js

index d285265f63dc4841f9b74dfb0878eab7f6f19f95..0123f420f9f10271ecebef271def1c6e704bc398 100644 (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]);
        });
-});
\ No newline at end of file
+});