diff --git a/libs/designsystem/testing-base/src/lib/components/mock.chart.component.ts b/libs/designsystem/testing-base/src/lib/components/mock.chart.component.ts index 7c11df824e..97f7eb3735 100644 --- a/libs/designsystem/testing-base/src/lib/components/mock.chart.component.ts +++ b/libs/designsystem/testing-base/src/lib/components/mock.chart.component.ts @@ -2,6 +2,10 @@ import { Component, forwardRef, Input } from '@angular/core'; import { ChartComponent, ChartType } from '@kirbydesign/designsystem'; +// IMPORTANT: MockChartComponent class needs to extend MockBaseChartComponent +// see https://github.com/kirbydesign/designsystem/issues/3029 +import { MockBaseChartComponent } from './mock.base-chart.component'; + // #region AUTO-GENERATED - PLEASE DON'T EDIT CONTENT WITHIN! @Component({ selector: 'kirby-chart', @@ -13,7 +17,7 @@ import { ChartComponent, ChartType } from '@kirbydesign/designsystem'; }, ], }) -export class MockChartComponent { +export class MockChartComponent extends MockBaseChartComponent { @Input() type: Exclude; } diff --git a/libs/designsystem/testing-base/src/lib/components/mock.stock-chart.component.ts b/libs/designsystem/testing-base/src/lib/components/mock.stock-chart.component.ts index dbc214c485..288858103e 100644 --- a/libs/designsystem/testing-base/src/lib/components/mock.stock-chart.component.ts +++ b/libs/designsystem/testing-base/src/lib/components/mock.stock-chart.component.ts @@ -3,6 +3,10 @@ import { Component, forwardRef, Input } from '@angular/core'; import { StockChartComponent } from '@kirbydesign/designsystem'; import { ChartDataLabelOptions } from '@kirbydesign/designsystem/chart'; +// IMPORTANT: MockStockChartComponent class needs to extend MockBaseChartComponent +// see https://github.com/kirbydesign/designsystem/issues/3029 +import { MockBaseChartComponent } from './mock.base-chart.component'; + // #region AUTO-GENERATED - PLEASE DON'T EDIT CONTENT WITHIN! @Component({ selector: 'kirby-stock-chart', @@ -14,7 +18,7 @@ import { ChartDataLabelOptions } from '@kirbydesign/designsystem/chart'; }, ], }) -export class MockStockChartComponent { +export class MockStockChartComponent extends MockBaseChartComponent { @Input() dataLabelOptions?: ChartDataLabelOptions; }