Browse Source

Fix spec for travis

pull/1003/head
Masayuki Tanaka 10 years ago
parent
commit
90449789c2
  1. 5
      spec/arc-spec.js
  2. 2
      spec/c3-helper.js

5
spec/arc-spec.js

@ -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 () {
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 () {

2
spec/c3-helper.js

@ -39,7 +39,7 @@ function initChart(chart, args, done) {
window.setTimeout(function () {
done();
}, 100);
}, 10);
return chart;
}

Loading…
Cancel
Save