File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed
Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -9,24 +9,6 @@ describe('Client', () => {
99 jest . resetAllMocks ( ) ;
1010 } ) ;
1111
12- it ( 'should close the client when the close method is called' , async ( ) => {
13- // given
14- const start = jest . spyOn ( PollingProcessor . prototype , 'start' ) ;
15- const close = jest . spyOn ( PollingProcessor . prototype , 'close' ) ;
16-
17- // when
18- const client = new Client ( 'some key' , {
19- enableAnalytics : false ,
20- } ) ;
21- await client . waitForInitialization ( ) ;
22-
23- client . close ( ) ;
24-
25- // then
26- expect ( start ) . toBeCalledTimes ( 1 ) ;
27- expect ( close ) . toBeCalledTimes ( 1 ) ;
28- } ) ;
29-
3012 it ( 'should warn if poll interval is set below the default' , async ( ) => {
3113 jest . spyOn ( PollingProcessor . prototype , 'start' ) . mockReturnValue ( undefined ) ;
3214 const warnSpy = jest . spyOn ( console , 'warn' ) . mockReturnValue ( undefined ) ;
You can’t perform that action at this time.
0 commit comments