()
| 1371 | |
| 1372 | it('should not throw errors when chart size is negative', function() { |
| 1373 | function createChart() { |
| 1374 | return window.acquireChart({ |
| 1375 | type: 'bar', |
| 1376 | data: { |
| 1377 | labels: [0, 1, 2, 3, 4, 5, 6, 7, '7+'], |
| 1378 | datasets: [{ |
| 1379 | data: [29.05, 4, 15.69, 11.69, 2.84, 4, 0, 3.84, 4], |
| 1380 | }], |
| 1381 | }, |
| 1382 | options: { |
| 1383 | plugins: false, |
| 1384 | layout: { |
| 1385 | padding: {top: 30, left: 1, right: 1, bottom: 1} |
| 1386 | } |
| 1387 | } |
| 1388 | }, { |
| 1389 | canvas: { |
| 1390 | height: 0, |
| 1391 | width: 0 |
| 1392 | } |
| 1393 | }); |
| 1394 | } |
| 1395 | |
| 1396 | expect(createChart).not.toThrow(); |
| 1397 | }); |
nothing calls this directly
no outgoing calls
no test coverage detected