* Fix typo, add tests to catch
* Tune tests
ctx.fill();
}
}
- if (!isNaN(element.curcumference)) {
+ if (!isNaN(element.circumference)) {
element.endAngle = element.startAngle + element.circumference % TAU;
}
--- /dev/null
+module.exports = {
+ threshold: 0.05,
+ config: {
+ type: 'doughnut',
+ data: {
+ labels: ['A'],
+ datasets: [{
+ data: [1],
+ backgroundColor: 'rgba(0,0,0,0.3)',
+ borderColor: 'rgba(0,0,0,0.5)',
+ circumference: 405
+ }]
+ },
+ },
+ options: {
+ canvas: {
+ width: 256,
+ height: 256
+ }
+ }
+};
--- /dev/null
+module.exports = {
+ threshold: 0.05,
+ config: {
+ type: 'doughnut',
+ data: {
+ labels: ['A'],
+ datasets: [{
+ data: [1],
+ backgroundColor: 'rgba(0,0,0,0.3)',
+ borderColor: 'rgba(0,0,0,0.5)'
+ }]
+ },
+ },
+ options: {
+ canvas: {
+ width: 256,
+ height: 256
+ }
+ }
+};