Skip to content

Commit

Permalink
fix(jest): add all AppEventsLogger methods to jest mock file (#495)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikestone14 authored Feb 22, 2024
1 parent 970f240 commit c991e14
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions jest/mocks/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,20 @@ export default {
},
AppEventsLogger: {
logEvent: jest.fn(),
logProductItem: jest.fn(),
logPushNotificationOpen: jest.fn(),
logPurchase: jest.fn(),
setFlushBehavior: jest.fn(),
setPushNotificationsDeviceToken: jest.fn(),
setPushNotificationsRegistrationId: jest.fn(),
setUserData: jest.fn(),
setUserID: jest.fn(),
clearUserID: jest.fn(),
flush: jest.fn(),
getAdvertiserID: jest.fn(),
getAnonymousID: jest.fn(),
getAttributionID: jest.fn(),
getUserID: jest.fn(),
AppEventParams: mockAppEventParams,
AppEvents: mockAppEvents,
},
Expand Down

0 comments on commit c991e14

Please sign in to comment.