()
| 63 | |
| 64 | it('should not try to delete non existent stacks', function() { |
| 65 | function createAndUpdateChart() { |
| 66 | var chart = acquireChart({ |
| 67 | data: { |
| 68 | labels: ['q'], |
| 69 | datasets: [ |
| 70 | { |
| 71 | id: 'dismissed', |
| 72 | label: 'Test before', |
| 73 | yAxisID: 'count', |
| 74 | data: [816], |
| 75 | type: 'bar', |
| 76 | stack: 'stack' |
| 77 | } |
| 78 | ] |
| 79 | }, |
| 80 | options: { |
| 81 | scales: { |
| 82 | count: { |
| 83 | axis: 'y', |
| 84 | type: 'linear' |
| 85 | } |
| 86 | } |
| 87 | } |
| 88 | }); |
| 89 | |
| 90 | chart.data = { |
| 91 | datasets: [ |
| 92 | { |
| 93 | id: 'tests', |
| 94 | yAxisID: 'count', |
| 95 | label: 'Test after', |
| 96 | data: [38300], |
| 97 | type: 'bar' |
| 98 | } |
| 99 | ], |
| 100 | labels: ['q'] |
| 101 | }; |
| 102 | |
| 103 | chart.update(); |
| 104 | } |
| 105 | |
| 106 | expect(createAndUpdateChart).not.toThrow(); |
| 107 | }); |