Skip to content

Commit

Permalink
chore: Updated test based on Optimizely fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rijuma committed Jul 11, 2024
1 parent 03ce47e commit 03b500a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useOptimizelyExperiment.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('useOptimizelyExperiment()', () => {
});

it('should call useDecision() with the expected parameters', () => {
expect(useDecision).toHaveBeenCalledWith(optimizelyFlag, { autoUpdate: true }, { id: userId });
expect(useDecision).toHaveBeenCalledWith(optimizelyFlag, { autoUpdate: true }, { id: userId.toString() });
});

it('should call setExperiment() with the expected parameters', () => {
Expand Down

0 comments on commit 03b500a

Please sign in to comment.