From 03b500ad989a233a1197dc6069a8451cd6cee82f Mon Sep 17 00:00:00 2001 From: Marcos Date: Thu, 11 Jul 2024 16:02:18 -0300 Subject: [PATCH] chore: Updated test based on Optimizely fix --- src/hooks/useOptimizelyExperiment.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useOptimizelyExperiment.test.js b/src/hooks/useOptimizelyExperiment.test.js index a45ae0d5..c328c708 100644 --- a/src/hooks/useOptimizelyExperiment.test.js +++ b/src/hooks/useOptimizelyExperiment.test.js @@ -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', () => {