Skip to content

Commit 7943ac9

Browse files
committed
test(routines): fix MonthView test typing (TM-926)
1 parent ed936c8 commit 7943ac9

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎src/components/dailyRoutine/views/__tests__/MonthView.test.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ const render = async (entries: unknown[]) => {
4444
onCellClick: () => undefined,
4545
}),
4646
});
47-
app.config.globalProperties.$t = (_k: string, p?: { n: number }) =>
48-
`${p?.n} comments`;
47+
(app.config.globalProperties as Record<string, unknown>).$t = (
48+
_k: string,
49+
p?: { n: number },
50+
) => `${p?.n} comments`;
4951
return renderToString(app);
5052
};
5153

0 commit comments

Comments
 (0)