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 () {
expect(true).toBeTruthy();
});
it('should have correct d even if data id can be converted to a color', function () {
expect(d3.select('.c3-arc-black').attr('d')).toMatch(/M-124\..+,-171\..+A211\..+,211\..+ 0 0,1 -3\..+,-211\..+L0,0Z/);
it('should have correct d even if data id can be converted to a color', function (done) {
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 () {
......
......@@ -39,7 +39,7 @@ function initChart(chart, args, done) {
window.setTimeout(function () {
done();
}, 100);
}, 10);
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