@@ -19,7 +19,11 @@ vi.mock('launchdarkly-js-client-sdk', () => ({
1919 initialize : mockInitialize ,
2020} ) ) ;
2121
22- import { InternalClientProvider , useInternalClient , useInternalClientInstance } from '../ui/Toolbar/context/InternalClientProvider' ;
22+ import {
23+ InternalClientProvider ,
24+ useInternalClient ,
25+ useInternalClientInstance ,
26+ } from '../ui/Toolbar/context/InternalClientProvider' ;
2327import { setToolbarFlagClient } from '../../flags/createToolbarFlagFunction' ;
2428import * as toolbarFlagClient from '../../flags/createToolbarFlagFunction' ;
2529
@@ -199,15 +203,11 @@ describe('InternalClientProvider', () => {
199203 ) ;
200204
201205 await waitFor ( ( ) => {
202- expect ( mockInitialize ) . toHaveBeenCalledWith (
203- 'test-client-id-123' ,
204- expect . any ( Object ) ,
205- {
206- baseUrl : 'https://app.ld.catamorphic.com' ,
207- streamUrl : 'https://clientstream.ld.catamorphic.com' ,
208- eventsUrl : 'https://events.ld.catamorphic.com' ,
209- } ,
210- ) ;
206+ expect ( mockInitialize ) . toHaveBeenCalledWith ( 'test-client-id-123' , expect . any ( Object ) , {
207+ baseUrl : 'https://app.ld.catamorphic.com' ,
208+ streamUrl : 'https://clientstream.ld.catamorphic.com' ,
209+ eventsUrl : 'https://events.ld.catamorphic.com' ,
210+ } ) ;
211211 } ) ;
212212 } ) ;
213213
@@ -296,5 +296,4 @@ describe('InternalClientProvider', () => {
296296 expect ( screen . getByTestId ( 'client-instance' ) ) . toHaveTextContent ( 'null' ) ;
297297 } ) ;
298298 } ) ;
299-
300299} ) ;
0 commit comments