Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tyiuhc committed Jan 9, 2025
1 parent bcee1ef commit ccb1914
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/experiment-tag/test/experiment.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,11 @@ describe('initializeExperiment', () => {
test('should initialize experiment with empty user', () => {
initializeExperiment(stringify(apiKey), JSON.stringify([]));
expect(ExperimentClient.prototype.setUser).toHaveBeenCalledWith({
device_id: 'mock',
web_exp_id: 'mock',
});
expect(mockGlobal.localStorage.setItem).toHaveBeenCalledWith(
'EXP_1',
JSON.stringify({ device_id: 'mock', web_exp_id: 'mock' }),
JSON.stringify({ web_exp_id: 'mock' }),
);
});

Expand Down

0 comments on commit ccb1914

Please sign in to comment.