@@ -78,6 +78,7 @@ describe('EventsFactory.bulkToggleEventMark', () => {
7878 const result = await factory . bulkToggleEventMark ( [ id . toString ( ) ] , 'starred' ) ;
7979
8080 expect ( result . updatedCount ) . toBe ( 1 ) ;
81+ expect ( result . updatedEventIds ) . toEqual ( [ id . toString ( ) ] ) ;
8182 const ops = collectionMock . bulkWrite . mock . calls [ 0 ] [ 0 ] ;
8283
8384 expect ( ops ) . toHaveLength ( 1 ) ;
@@ -130,6 +131,7 @@ describe('EventsFactory.bulkToggleEventMark', () => {
130131 const result = await factory . bulkToggleEventMark ( [ 'not-a-valid-id' ] , 'resolved' ) ;
131132
132133 expect ( result . updatedCount ) . toBe ( 0 ) ;
134+ expect ( result . updatedEventIds ) . toEqual ( [ ] ) ;
133135 expect ( result . failedEventIds ) . toContain ( 'not-a-valid-id' ) ;
134136 expect ( collectionMock . bulkWrite ) . not . toHaveBeenCalled ( ) ;
135137 } ) ;
@@ -145,6 +147,7 @@ describe('EventsFactory.bulkToggleEventMark', () => {
145147 const result = await factory . bulkToggleEventMark ( [ missing . toString ( ) ] , 'ignored' ) ;
146148
147149 expect ( result . updatedCount ) . toBe ( 0 ) ;
150+ expect ( result . updatedEventIds ) . toEqual ( [ ] ) ;
148151 expect ( result . failedEventIds ) . toContain ( missing . toString ( ) ) ;
149152 expect ( collectionMock . bulkWrite ) . not . toHaveBeenCalled ( ) ;
150153 } ) ;
@@ -169,6 +172,7 @@ describe('EventsFactory.bulkToggleEventMark', () => {
169172 const result = await factory . bulkToggleEventMark ( [ a . toString ( ) , b . toString ( ) ] , 'ignored' ) ;
170173
171174 expect ( result . updatedCount ) . toBe ( 1 ) ;
175+ expect ( result . updatedEventIds ) . toEqual ( [ b . toString ( ) ] ) ;
172176 const ops = collectionMock . bulkWrite . mock . calls [ 0 ] [ 0 ] ;
173177
174178 expect ( ops ) . toHaveLength ( 1 ) ;
@@ -200,6 +204,7 @@ describe('EventsFactory.bulkToggleEventMark', () => {
200204 const result = await factory . bulkToggleEventMark ( [ a . toString ( ) , b . toString ( ) ] , 'resolved' ) ;
201205
202206 expect ( result . updatedCount ) . toBe ( 2 ) ;
207+ expect ( result . updatedEventIds ) . toEqual ( [ a . toString ( ) , b . toString ( ) ] ) ;
203208 const ops = collectionMock . bulkWrite . mock . calls [ 0 ] [ 0 ] ;
204209
205210 expect ( ops ) . toHaveLength ( 2 ) ;
@@ -227,6 +232,7 @@ describe('EventsFactory.bulkToggleEventMark', () => {
227232 const result = await factory . bulkToggleEventMark ( [ a . toString ( ) , b . toString ( ) ] , 'ignored' ) ;
228233
229234 expect ( result . updatedCount ) . toBe ( 1 ) ;
235+ expect ( result . updatedEventIds ) . toEqual ( [ b . toString ( ) ] ) ;
230236 const ops = collectionMock . bulkWrite . mock . calls [ 0 ] [ 0 ] ;
231237
232238 expect ( ops ) . toHaveLength ( 1 ) ;
0 commit comments