Skip to content

Commit 7a49c25

Browse files
Copilothotlong
andcommitted
refactor: remove unnecessary as any casts in MetricCard tests
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent a699661 commit 7a49c25

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/plugin-dashboard/src/__tests__/MetricCard.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ describe('MetricCard', () => {
6060
it('should resolve I18nLabel objects for title', () => {
6161
render(
6262
<MetricCard
63-
title={{ key: 'crm.dashboard.widgets.totalRevenue', defaultValue: 'Total Revenue' } as any}
63+
title={{ key: 'crm.dashboard.widgets.totalRevenue', defaultValue: 'Total Revenue' }}
6464
value="$45,231"
6565
/>
6666
);
@@ -73,7 +73,7 @@ describe('MetricCard', () => {
7373
<MetricCard
7474
title="Revenue"
7575
value="$45,231"
76-
description={{ key: 'crm.dashboard.trendLabel', defaultValue: 'vs last month' } as any}
76+
description={{ key: 'crm.dashboard.trendLabel', defaultValue: 'vs last month' }}
7777
/>
7878
);
7979

0 commit comments

Comments
 (0)