Skip to content

Commit a4138e4

Browse files
committed
test(deploy): fix type assertion in analytics deploy test
1 parent c9e753e commit a4138e4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/web/tests/components/FileViewer.deploy-analytics.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,10 @@ describe('FileViewer deploy analytics attribution', () => {
140140

141141
await waitFor(() => {
142142
const trackCalls = analyticsTrackMock.mock.calls.filter(
143-
(call: [string, Record<string, unknown>]) => call[0] === 'artifact_deploy_result',
143+
(call: any[]) => call[0] === 'artifact_deploy_result',
144144
);
145145
expect(trackCalls.length).toBeGreaterThan(0);
146-
const [, props] = trackCalls[0];
146+
const props = trackCalls[0][1] as Record<string, unknown>;
147147
expect(props).toMatchObject({
148148
page_name: 'artifact',
149149
area: 'deploy_modal',

0 commit comments

Comments
 (0)