@@ -840,8 +840,6 @@ describe('StagingAreaApi', () => {
840840 api . $items . set ( [ createMockQueueItem ( { item_id : 1 } ) ] ) ;
841841 api . $lastStartedItemId . set ( 1 ) ;
842842 api . $lastCompletedItemId . set ( 1 ) ;
843- api . _seenItemStatusRanks . set ( 1 , 2 ) ;
844- api . _seenItemStatusSequences . set ( 1 , 3 ) ;
845843 api . $progressData . setKey ( 1 , {
846844 itemId : 1 ,
847845 progressEvent : null ,
@@ -858,8 +856,6 @@ describe('StagingAreaApi', () => {
858856 expect ( api . $lastStartedItemId . get ( ) ) . toBe ( null ) ;
859857 expect ( api . $lastCompletedItemId . get ( ) ) . toBe ( null ) ;
860858 expect ( api . $progressData . get ( ) ) . toEqual ( { } ) ;
861- expect ( api . _seenItemStatusRanks . size ) . toBe ( 0 ) ;
862- expect ( api . _seenItemStatusSequences . size ) . toBe ( 0 ) ;
863859 } ) ;
864860 } ) ;
865861
@@ -1179,32 +1175,6 @@ describe('StagingAreaApi', () => {
11791175 expect ( api . $isPending . get ( ) ) . toBe ( false ) ;
11801176 } ) ;
11811177
1182- it ( 'should prune seen item ordering when an item leaves the staging area' , async ( ) => {
1183- await api . onItemsChangedEvent ( [
1184- createMockQueueItem ( {
1185- item_id : 1 ,
1186- status : 'completed' ,
1187- status_sequence : 2 ,
1188- } ) ,
1189- ] ) ;
1190-
1191- expect ( api . _seenItemStatusRanks . get ( 1 ) ) . toBe ( 2 ) ;
1192- expect ( api . _seenItemStatusSequences . get ( 1 ) ) . toBe ( 2 ) ;
1193-
1194- await api . onItemsChangedEvent ( [
1195- createMockQueueItem ( {
1196- item_id : 2 ,
1197- status : 'pending' ,
1198- status_sequence : 0 ,
1199- } ) ,
1200- ] ) ;
1201-
1202- expect ( api . _seenItemStatusRanks . has ( 1 ) ) . toBe ( false ) ;
1203- expect ( api . _seenItemStatusSequences . has ( 1 ) ) . toBe ( false ) ;
1204- expect ( api . _seenItemStatusRanks . get ( 2 ) ) . toBe ( 0 ) ;
1205- expect ( api . _seenItemStatusSequences . get ( 2 ) ) . toBe ( 0 ) ;
1206- } ) ;
1207-
12081178 it ( 'should load all images from multiple canvas_output nodes' , async ( ) => {
12091179 const imageDTO1 = createMockImageDTO ( { image_name : 'output1.png' } ) ;
12101180 const imageDTO2 = createMockImageDTO ( { image_name : 'output2.png' } ) ;
0 commit comments