@@ -600,34 +600,6 @@ describe('resolvePrunedPieceInstances', () => {
600600 } satisfies ResolvedPieceInstance )
601601 } )
602602
603- test ( 'numeric start, with userDuration.endRelativeToNow' , async ( ) => {
604- const nowInPart = 123
605- const piece = createPieceInstance ( { start : 500 } , undefined , {
606- endRelativeToNow : 4000 ,
607- } )
608-
609- expect ( resolvePrunedPieceInstance ( nowInPart , clone ( piece ) ) ) . toStrictEqual ( {
610- instance : clone ( piece ) ,
611- timelinePriority : piece . priority ,
612- resolvedStart : 500 ,
613- resolvedDuration : 4000 - 500 + nowInPart ,
614- } satisfies ResolvedPieceInstance )
615- } )
616-
617- test ( 'now start, with userDuration.endRelativeToNow' , async ( ) => {
618- const nowInPart = 123
619- const piece = createPieceInstance ( { start : 'now' } , undefined , {
620- endRelativeToNow : 4000 ,
621- } )
622-
623- expect ( resolvePrunedPieceInstance ( nowInPart , clone ( piece ) ) ) . toStrictEqual ( {
624- instance : clone ( piece ) ,
625- timelinePriority : piece . priority ,
626- resolvedStart : nowInPart ,
627- resolvedDuration : 4000 ,
628- } satisfies ResolvedPieceInstance )
629- } )
630-
631603 test ( 'now start, with end cap, planned duration and userDuration.endRelativeToPart' , async ( ) => {
632604 const nowInPart = 123
633605 const piece = createPieceInstance ( { start : 'now' , duration : 3000 } , 5000 , { endRelativeToPart : 2800 } )
@@ -639,16 +611,4 @@ describe('resolvePrunedPieceInstances', () => {
639611 resolvedDuration : 2800 - nowInPart ,
640612 } satisfies ResolvedPieceInstance )
641613 } )
642-
643- test ( 'now start, with end cap, planned duration and userDuration.endRelativeToNow' , async ( ) => {
644- const nowInPart = 123
645- const piece = createPieceInstance ( { start : 'now' , duration : 3000 } , 5000 , { endRelativeToNow : 2800 } )
646-
647- expect ( resolvePrunedPieceInstance ( nowInPart , clone ( piece ) ) ) . toStrictEqual ( {
648- instance : clone ( piece ) ,
649- timelinePriority : piece . priority ,
650- resolvedStart : nowInPart ,
651- resolvedDuration : 2800 ,
652- } satisfies ResolvedPieceInstance )
653- } )
654614} )
0 commit comments