@@ -35,7 +35,7 @@ jest.mock('../../src/mongo', () => ({
3535// eslint-disable-next-line @typescript-eslint/no-var-requires, @typescript-eslint/no-explicit-any -- CJS class
3636const EventsFactory = require ( '../../src/models/eventsFactory' ) as any ;
3737
38- describe ( 'EventsFactory.bulkVisitEvent ' , ( ) => {
38+ describe ( 'EventsFactory.bulkVisitEvents ' , ( ) => {
3939 const projectId = '507f1f77bcf86cd799439011' ;
4040
4141 beforeEach ( ( ) => {
@@ -57,7 +57,7 @@ describe('EventsFactory.bulkVisitEvent', () => {
5757 } ) ;
5858 collectionMock . updateMany . mockResolvedValue ( { modifiedCount : 1 } ) ;
5959
60- const result = await factory . bulkVisitEvent ( [ a . toString ( ) , b . toString ( ) ] , userId . toString ( ) ) ;
60+ const result = await factory . bulkVisitEvents ( [ a . toString ( ) , b . toString ( ) ] , userId . toString ( ) ) ;
6161
6262 expect ( result . updatedCount ) . toBe ( 1 ) ;
6363 expect ( result . updatedEventIds ) . toEqual ( [ b . toString ( ) ] ) ;
@@ -72,7 +72,7 @@ describe('EventsFactory.bulkVisitEvent', () => {
7272 toArray : ( ) => Promise . resolve ( [ ] ) ,
7373 } ) ;
7474
75- const result = await factory . bulkVisitEvent ( [ missing . toString ( ) ] , new ObjectId ( ) . toString ( ) ) ;
75+ const result = await factory . bulkVisitEvents ( [ missing . toString ( ) ] , new ObjectId ( ) . toString ( ) ) ;
7676
7777 expect ( result . updatedCount ) . toBe ( 0 ) ;
7878 expect ( result . updatedEventIds ) . toEqual ( [ ] ) ;
0 commit comments