From 576df1a170b06f605fe29fc45f85556bec37c89a Mon Sep 17 00:00:00 2001 From: Yuriy Yakym Date: Thu, 9 Jan 2025 13:02:08 +0700 Subject: [PATCH] Update test file --- packages/analytics-nextjs/src/plugins/testSpy.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/analytics-nextjs/src/plugins/testSpy.test.ts b/packages/analytics-nextjs/src/plugins/testSpy.test.ts index ebd395e..d9a68a6 100644 --- a/packages/analytics-nextjs/src/plugins/testSpy.test.ts +++ b/packages/analytics-nextjs/src/plugins/testSpy.test.ts @@ -47,6 +47,6 @@ it('logs events correctly', async () => { await analytics.track('Test Event'); expect(trackSpy).toHaveBeenCalled(); - expect(eventCtx).not.toBe(undefined); - expect(eventCtx.event.event).toBe('Test Event'); + expect(eventCtx!).not.toBe(undefined); + expect(eventCtx!.event.event).toBe('Test Event'); });