()
| 187 | } |
| 188 | |
| 189 | function createChart() { |
| 190 | return window.acquireChart({ |
| 191 | type: 'line', |
| 192 | data: { |
| 193 | datasets: [{ |
| 194 | data |
| 195 | }] |
| 196 | }, |
| 197 | options: { |
| 198 | devicePixelRatio: 1.25, |
| 199 | parsing: false, |
| 200 | scales: { |
| 201 | x: { |
| 202 | type: 'linear' |
| 203 | } |
| 204 | }, |
| 205 | plugins: { |
| 206 | decimation: { |
| 207 | enabled: true, |
| 208 | algorithm: 'lttb' |
| 209 | } |
| 210 | } |
| 211 | } |
| 212 | }, { |
| 213 | canvas: {width: 511, height: 511}, |
| 214 | }); |
| 215 | } |
| 216 | expect(createChart).not.toThrow(); |
| 217 | }); |
| 218 | }); |
nothing calls this directly
no outgoing calls
no test coverage detected