@@ -4,14 +4,14 @@ import { mockSettings } from '../../__mocks__/state-mocks';
44
55import type { GitifyMilestone } from '../../types' ;
66
7- import { MetricGroup } from './MetricGroup' ;
7+ import { MetricGroup , type MetricGroupProps } from './MetricGroup' ;
88
99describe ( 'renderer/components/metrics/MetricGroup.tsx' , ( ) => {
1010 describe ( 'showPills disabled' , ( ) => {
1111 it ( 'should not render any pills when showPills is disabled' , async ( ) => {
1212 const mockNotification = mockGitifyNotification ;
1313
14- const props = {
14+ const props : MetricGroupProps = {
1515 notification : mockNotification ,
1616 } ;
1717
@@ -27,7 +27,7 @@ describe('renderer/components/metrics/MetricGroup.tsx', () => {
2727 const mockNotification = mockGitifyNotification ;
2828 mockNotification . subject . linkedIssues = [ '#1' ] ;
2929
30- const props = {
30+ const props : MetricGroupProps = {
3131 notification : mockNotification ,
3232 } ;
3333
@@ -39,7 +39,7 @@ describe('renderer/components/metrics/MetricGroup.tsx', () => {
3939 const mockNotification = mockGitifyNotification ;
4040 mockNotification . subject . linkedIssues = [ '#1' , '#2' ] ;
4141
42- const props = {
42+ const props : MetricGroupProps = {
4343 notification : mockNotification ,
4444 } ;
4545
@@ -53,7 +53,7 @@ describe('renderer/components/metrics/MetricGroup.tsx', () => {
5353 const mockNotification = mockGitifyNotification ;
5454 mockNotification . subject . commentCount = null ;
5555
56- const props = {
56+ const props : MetricGroupProps = {
5757 notification : mockNotification ,
5858 } ;
5959
@@ -65,7 +65,7 @@ describe('renderer/components/metrics/MetricGroup.tsx', () => {
6565 const mockNotification = mockGitifyNotification ;
6666 mockNotification . subject . commentCount = 1 ;
6767
68- const props = {
68+ const props : MetricGroupProps = {
6969 notification : mockNotification ,
7070 } ;
7171
@@ -77,7 +77,7 @@ describe('renderer/components/metrics/MetricGroup.tsx', () => {
7777 const mockNotification = mockGitifyNotification ;
7878 mockNotification . subject . commentCount = 2 ;
7979
80- const props = {
80+ const props : MetricGroupProps = {
8181 notification : mockNotification ,
8282 } ;
8383
@@ -91,7 +91,7 @@ describe('renderer/components/metrics/MetricGroup.tsx', () => {
9191 const mockNotification = mockGitifyNotification ;
9292 mockNotification . subject . labels = [ 'enhancement' , 'good-first-issue' ] ;
9393
94- const props = {
94+ const props : MetricGroupProps = {
9595 notification : mockNotification ,
9696 } ;
9797
@@ -108,7 +108,7 @@ describe('renderer/components/metrics/MetricGroup.tsx', () => {
108108 state : 'OPEN' ,
109109 } as GitifyMilestone ;
110110
111- const props = {
111+ const props : MetricGroupProps = {
112112 notification : mockNotification ,
113113 } ;
114114
@@ -123,7 +123,7 @@ describe('renderer/components/metrics/MetricGroup.tsx', () => {
123123 state : 'CLOSED' ,
124124 } as GitifyMilestone ;
125125
126- const props = {
126+ const props : MetricGroupProps = {
127127 notification : mockNotification ,
128128 } ;
129129
0 commit comments