()
| 504 | |
| 505 | it('should not throw when the label options are missing', function() { |
| 506 | var makeChart = function() { |
| 507 | window.acquireChart({ |
| 508 | type: 'bar', |
| 509 | data: { |
| 510 | datasets: [{ |
| 511 | label: 'dataset1', |
| 512 | backgroundColor: '#f31', |
| 513 | borderCapStyle: 'butt', |
| 514 | borderDash: [2, 2], |
| 515 | borderDashOffset: 5.5, |
| 516 | data: [] |
| 517 | }], |
| 518 | labels: [] |
| 519 | }, |
| 520 | options: { |
| 521 | plugins: { |
| 522 | legend: { |
| 523 | labels: false, |
| 524 | } |
| 525 | } |
| 526 | } |
| 527 | }); |
| 528 | }; |
| 529 | expect(makeChart).not.toThrow(); |
| 530 | }); |
| 531 |
nothing calls this directly
no outgoing calls
no test coverage detected