fix: Push tidy up telemetry events to posthog (no-changelog) (#14296)

This commit is contained in:
Elias Meire
2025-03-31 16:12:32 +02:00
committed by GitHub
parent d6331195b8
commit 83738bd324
2 changed files with 18 additions and 10 deletions

View File

@@ -527,11 +527,15 @@ describe('useCanvasOperations', () => {
const { tidyUp } = useCanvasOperations({ router });
tidyUp(event);
expect(useTelemetry().track).toHaveBeenCalledWith('User tidied up canvas', {
nodes_count: 2,
source: 'canvas-button',
target: 'all',
});
expect(useTelemetry().track).toHaveBeenCalledWith(
'User tidied up canvas',
{
nodes_count: 2,
source: 'canvas-button',
target: 'all',
},
{ withPostHog: true },
);
});
});