Skip to content

Commit edeabeb

Browse files
committed
Fix screen() test to pass properties as third arg after category param
The screen() signature changed to screen(name, category?, properties?, ...), so the test needs to pass undefined for category before the properties object. https://claude.ai/code/session_0117WwRELH1nzVbxRj7Kmm5N
1 parent ff8c13a commit edeabeb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/__tests__/FormoAnalytics.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ describe('FormoAnalytics', () => {
349349

350350
describe('screen()', () => {
351351
it('should track screen views', async () => {
352-
await analytics.screen('HomeScreen', { section: 'featured' });
352+
await analytics.screen('HomeScreen', undefined, { section: 'featured' });
353353

354354
expect(mockEventManager.addEvent).toHaveBeenCalled();
355355
});

0 commit comments

Comments
 (0)