From 3c13bca19ecc8d62bf527e00dc38010134622c97 Mon Sep 17 00:00:00 2001 From: kyle-ssg Date: Tue, 10 Sep 2024 18:12:11 +0100 Subject: [PATCH] Adjust test --- test/analytics.test.ts | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/test/analytics.test.ts b/test/analytics.test.ts index e7cfc25..b6a35e7 100644 --- a/test/analytics.test.ts +++ b/test/analytics.test.ts @@ -1,20 +1,12 @@ // Sample test -import { - defaultState, - defaultStateAlt, - getFlagsmith, - getStateToCheck, - identityState, - testIdentity, -} from './test-constants'; -import SyncStorageMock from './mocks/sync-storage-mock'; +import { getFlagsmith, testIdentity } from './test-constants'; describe('Analytics', () => { beforeEach(() => { // Avoid mocks, but if you need to add them here }); - test('should check cache but not call onChange when empty', async () => { + test('should track analytics when trackEvent is called', async () => { const onChange = jest.fn(); const { flagsmith, initConfig, mockFetch } = getFlagsmith({ cacheFlags: true,