mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-16 20:43:48 +00:00
Silenced ts errors on chart tests
This commit is contained in:
@@ -19,9 +19,9 @@ describe('<DoughnutChart />', () => {
|
||||
|
||||
expect(doughnut).toHaveLength(1);
|
||||
|
||||
const { labels, datasets } = doughnut.prop('data');
|
||||
const { labels, datasets } = doughnut.prop('data') as any;
|
||||
const [{ data, backgroundColor, borderColor }] = datasets;
|
||||
const { plugins, scales } = doughnut.prop('options') ?? {};
|
||||
const { plugins, scales } = (doughnut.prop('options') ?? {}) as any;
|
||||
|
||||
expect(labels).toEqual(keys(stats));
|
||||
expect(data).toEqual(values(stats));
|
||||
|
||||
Reference in New Issue
Block a user