Skip to content

Commit

Permalink
Adjust test
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-ssg committed Sep 10, 2024
1 parent 3a23dd7 commit 3c13bca
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions test/analytics.test.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit 3c13bca

Please sign in to comment.