@@ -140,7 +140,14 @@ describe('Commands', () => {
140140 root : { component : { name : 'com.example.MyScreen' } } ,
141141 } ) ;
142142 expect ( layoutProcessor . process ) . toBeCalledWith (
143- { component : { name : 'com.example.MyScreen' , options : { } , id : 'Component+UNIQUE_ID' } } ,
143+ {
144+ component : {
145+ name : 'com.example.MyScreen' ,
146+ options : { } ,
147+ id : 'Component+UNIQUE_ID' ,
148+ processedByNavigation : true ,
149+ } ,
150+ } ,
144151 CommandName . SetRoot
145152 ) ;
146153 } ) ;
@@ -168,6 +175,7 @@ describe('Commands', () => {
168175 id : 'Component+UNIQUE_ID' ,
169176 name : 'com.example.MyScreen' ,
170177 options : { topBar : { visible : false } } ,
178+ processedByNavigation : true ,
171179 } ,
172180 } ,
173181 CommandName . SetRoot
@@ -326,7 +334,14 @@ describe('Commands', () => {
326334 it ( 'process layout with layoutProcessor' , ( ) => {
327335 uut . showModal ( { component : { name : 'com.example.MyScreen' } } ) ;
328336 expect ( layoutProcessor . process ) . toBeCalledWith (
329- { component : { id : 'Component+UNIQUE_ID' , name : 'com.example.MyScreen' , options : { } } } ,
337+ {
338+ component : {
339+ id : 'Component+UNIQUE_ID' ,
340+ name : 'com.example.MyScreen' ,
341+ options : { } ,
342+ processedByNavigation : true ,
343+ } ,
344+ } ,
330345 CommandName . ShowModal
331346 ) ;
332347 } ) ;
@@ -437,7 +452,14 @@ describe('Commands', () => {
437452 it ( 'process layout with layoutProcessor' , ( ) => {
438453 uut . push ( 'theComponentId' , { component : { name : 'com.example.MyScreen' } } ) ;
439454 expect ( layoutProcessor . process ) . toBeCalledWith (
440- { component : { id : 'Component+UNIQUE_ID' , name : 'com.example.MyScreen' , options : { } } } ,
455+ {
456+ component : {
457+ id : 'Component+UNIQUE_ID' ,
458+ name : 'com.example.MyScreen' ,
459+ options : { } ,
460+ processedByNavigation : true ,
461+ } ,
462+ } ,
441463 CommandName . Push
442464 ) ;
443465 } ) ;
@@ -573,7 +595,14 @@ describe('Commands', () => {
573595 it ( 'process layout with layoutProcessor' , ( ) => {
574596 uut . setStackRoot ( 'theComponentId' , [ { component : { name : 'com.example.MyScreen' } } ] ) ;
575597 expect ( layoutProcessor . process ) . toBeCalledWith (
576- { component : { id : 'Component+UNIQUE_ID' , name : 'com.example.MyScreen' , options : { } } } ,
598+ {
599+ component : {
600+ id : 'Component+UNIQUE_ID' ,
601+ name : 'com.example.MyScreen' ,
602+ options : { } ,
603+ processedByNavigation : true ,
604+ } ,
605+ } ,
577606 CommandName . SetStackRoot
578607 ) ;
579608 } ) ;
@@ -619,7 +648,14 @@ describe('Commands', () => {
619648 it ( 'process layout with layoutProcessor' , ( ) => {
620649 uut . showOverlay ( { component : { name : 'com.example.MyScreen' } } ) ;
621650 expect ( layoutProcessor . process ) . toBeCalledWith (
622- { component : { id : 'Component+UNIQUE_ID' , name : 'com.example.MyScreen' , options : { } } } ,
651+ {
652+ component : {
653+ id : 'Component+UNIQUE_ID' ,
654+ name : 'com.example.MyScreen' ,
655+ options : { } ,
656+ processedByNavigation : true ,
657+ } ,
658+ } ,
623659 CommandName . ShowOverlay
624660 ) ;
625661 } ) ;
0 commit comments