@@ -13,9 +13,9 @@ describe('vanilla HTML spec', () => {
1313      // ensure scene has correct number of children... 
1414      expect ( lb . three . scene . children ) . to . have . length ( 2 ) ; 
1515      // ...geometries in memory... 
16-       expect ( lb . three . renderer . info . memory . geometries ) . to . eq ( 2 ) ; 
16+       expect ( lb . three . renderer ? .info . memory . geometries ) . to . eq ( 2 ) ; 
1717      // ...and draw calls 
18-       expect ( lb . three . renderer . info . render . calls ) . to . eq ( 2 ) ; 
18+       expect ( lb . three . renderer ? .info . render . calls ) . to . eq ( 2 ) ; 
1919      // set child to invisible - note no change to child/geo counts 
2020      cy . get ( 'three-mesh' ) . then ( async  mesh  =>  { 
2121        const  el  =  mesh . get ( 0 )  as  unknown  as  Lunchbox < THREE . Mesh > ; 
@@ -25,15 +25,15 @@ describe('vanilla HTML spec', () => {
2525        const  el  =  mesh . get ( 0 )  as  unknown  as  Lunchbox < THREE . Mesh > ; 
2626        expect ( el . instance . visible ) . to . be . false ; 
2727        expect ( lb . three . scene . children ) . to . have . length ( 2 ) ; 
28-         expect ( lb . three . renderer . info . memory . geometries ) . to . eq ( 2 ) ; 
28+         expect ( lb . three . renderer ? .info . memory . geometries ) . to . eq ( 2 ) ; 
2929
3030        // remove child - should see child, geo, and draw call count changes after this 
3131        el . remove ( ) ; 
3232        expect ( lb . three . scene . children ) . to . have . length ( 1 ) ; 
33-         expect ( lb . three . renderer . info . memory . geometries ) . to . eq ( 1 ) ; 
33+         expect ( lb . three . renderer ? .info . memory . geometries ) . to . eq ( 1 ) ; 
3434        // (note we're waiting a frame so the draw calls count has the opportunity to update) 
3535        await  new  Promise ( requestAnimationFrame ) ; 
36-         expect ( lb . three . renderer . info . render . calls ) . to . eq ( 1 ) ; 
36+         expect ( lb . three . renderer ? .info . render . calls ) . to . eq ( 1 ) ; 
3737      } ) ; 
3838    } ) ; 
3939  } ) ; 
0 commit comments