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,