@@ -104,7 +104,12 @@ describe('Lens App', () => {
104104 storage : Storage ;
105105 docId ?: string ;
106106 docStorage : SavedObjectStore ;
107- redirectTo : ( id ?: string , returnToOrigin ?: boolean , newlyCreated ?: boolean ) => void ;
107+ redirectTo : (
108+ id ?: string ,
109+ returnToOrigin ?: boolean ,
110+ originatingApp ?: string | undefined ,
111+ newlyCreated ?: boolean
112+ ) => void ;
108113 originatingApp : string | undefined ;
109114 } > {
110115 return ( {
@@ -140,7 +145,14 @@ describe('Lens App', () => {
140145 load : jest . fn ( ) ,
141146 save : jest . fn ( ) ,
142147 } ,
143- redirectTo : jest . fn ( ( id ?: string , returnToOrigin ?: boolean , newlyCreated ?: boolean ) => { } ) ,
148+ redirectTo : jest . fn (
149+ (
150+ id ?: string ,
151+ returnToOrigin ?: boolean ,
152+ originatingApp ?: string | undefined ,
153+ newlyCreated ?: boolean
154+ ) => { }
155+ ) ,
144156 } as unknown ) as jest . Mocked < {
145157 navigation : typeof navigationStartMock ;
146158 editorFrame : EditorFrameInstance ;
@@ -149,7 +161,12 @@ describe('Lens App', () => {
149161 storage : Storage ;
150162 docId ?: string ;
151163 docStorage : SavedObjectStore ;
152- redirectTo : ( id ?: string , returnToOrigin ?: boolean , newlyCreated ?: boolean ) => void ;
164+ redirectTo : (
165+ id ?: string ,
166+ returnToOrigin ?: boolean ,
167+ originatingApp ?: string | undefined ,
168+ newlyCreated ?: boolean
169+ ) => void ;
153170 originatingApp : string | undefined ;
154171 } > ;
155172 }
@@ -348,7 +365,12 @@ describe('Lens App', () => {
348365 storage : Storage ;
349366 docId ?: string ;
350367 docStorage : SavedObjectStore ;
351- redirectTo : ( id ?: string , returnToOrigin ?: boolean , newlyCreated ?: boolean ) => void ;
368+ redirectTo : (
369+ id ?: string ,
370+ returnToOrigin ?: boolean ,
371+ originatingApp ?: string | undefined ,
372+ newlyCreated ?: boolean
373+ ) => void ;
352374 originatingApp : string | undefined ;
353375 } > ;
354376
@@ -521,7 +543,7 @@ describe('Lens App', () => {
521543 expression : 'kibana 3' ,
522544 } ) ;
523545
524- expect ( args . redirectTo ) . toHaveBeenCalledWith ( 'aaa' , undefined , true ) ;
546+ expect ( args . redirectTo ) . toHaveBeenCalledWith ( 'aaa' , undefined , undefined , true ) ;
525547
526548 inst . setProps ( { docId : 'aaa' } ) ;
527549
@@ -541,7 +563,7 @@ describe('Lens App', () => {
541563 expression : 'kibana 3' ,
542564 } ) ;
543565
544- expect ( args . redirectTo ) . toHaveBeenCalledWith ( 'aaa' , undefined , true ) ;
566+ expect ( args . redirectTo ) . toHaveBeenCalledWith ( 'aaa' , undefined , undefined , true ) ;
545567
546568 inst . setProps ( { docId : 'aaa' } ) ;
547569
@@ -609,7 +631,7 @@ describe('Lens App', () => {
609631 title : 'hello there' ,
610632 } ) ;
611633
612- expect ( args . redirectTo ) . toHaveBeenCalledWith ( 'aaa' , true , true ) ;
634+ expect ( args . redirectTo ) . toHaveBeenCalledWith ( 'aaa' , true , undefined , true ) ;
613635 } ) ;
614636
615637 it ( 'saves app filters and does not save pinned filters' , async ( ) => {
@@ -677,7 +699,12 @@ describe('Lens App', () => {
677699 storage : Storage ;
678700 docId ?: string ;
679701 docStorage : SavedObjectStore ;
680- redirectTo : ( id ?: string , returnToOrigin ?: boolean , newlyCreated ?: boolean ) => void ;
702+ redirectTo : (
703+ id ?: string ,
704+ returnToOrigin ?: boolean ,
705+ originatingApp ?: string | undefined ,
706+ newlyCreated ?: boolean
707+ ) => void ;
681708 } > ;
682709
683710 beforeEach ( ( ) => {
0 commit comments