Commit 90449789 authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix spec for travis

parent d5396bf7
...@@ -56,8 +56,11 @@ describe('c3 chart arc', function () { ...@@ -56,8 +56,11 @@ describe('c3 chart arc', function () {
expect(true).toBeTruthy(); expect(true).toBeTruthy();
}); });
it('should have correct d even if data id can be converted to a color', function () { it('should have correct d even if data id can be converted to a color', function (done) {
expect(d3.select('.c3-arc-black').attr('d')).toMatch(/M-124\..+,-171\..+A211\..+,211\..+ 0 0,1 -3\..+,-211\..+L0,0Z/); setTimeout(function () {
expect(d3.select('.c3-arc-black').attr('d')).toMatch(/M-124\..+,-171\..+A211\..+,211\..+ 0 0,1 -3\..+,-211\..+L0,0Z/);
done();
}, 500);
}); });
it('should update args to have empty pie chart', function () { it('should update args to have empty pie chart', function () {
......
...@@ -39,7 +39,7 @@ function initChart(chart, args, done) { ...@@ -39,7 +39,7 @@ function initChart(chart, args, done) {
window.setTimeout(function () { window.setTimeout(function () {
done(); done();
}, 100); }, 10);
return chart; return chart;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment