11import type { Client , Event } from '@sentry/core' ;
22
3- import { EXPO_UPDATES_CONTEXT_KEY , expoContextIntegration } from '../../src/js/integrations/expocontext' ;
3+ import { expoContextIntegration , OTA_UPDATES_CONTEXT_KEY } from '../../src/js/integrations/expocontext' ;
44import * as environment from '../../src/js/utils/environment' ;
55import type { ExpoUpdates } from '../../src/js/utils/expoglobalobject' ;
66import { getExpoDevice } from '../../src/js/utils/expomodules' ;
@@ -21,7 +21,7 @@ describe('Expo Context Integration', () => {
2121 it ( 'does not add expo updates context' , ( ) => {
2222 const actualEvent = executeIntegrationFor ( { } ) ;
2323
24- expect ( actualEvent . contexts ?. [ EXPO_UPDATES_CONTEXT_KEY ] ) . toBeUndefined ( ) ;
24+ expect ( actualEvent . contexts ?. [ OTA_UPDATES_CONTEXT_KEY ] ) . toBeUndefined ( ) ;
2525 } ) ;
2626 } ) ;
2727
@@ -48,15 +48,15 @@ describe('Expo Context Integration', () => {
4848 const event1 = await integration . processEvent ! ( { } , { } , { } as Client ) ;
4949 const event2 = await integration . processEvent ! ( { } , { } , { } as Client ) ;
5050
51- expect ( event1 . contexts ! [ EXPO_UPDATES_CONTEXT_KEY ] ) . not . toBe ( event2 . contexts ! [ EXPO_UPDATES_CONTEXT_KEY ] ) ;
51+ expect ( event1 . contexts ! [ OTA_UPDATES_CONTEXT_KEY ] ) . not . toBe ( event2 . contexts ! [ OTA_UPDATES_CONTEXT_KEY ] ) ;
5252 } ) ;
5353
5454 it ( 'adds isEnabled false if ExpoUpdates module is missing' , ( ) => {
5555 jest . spyOn ( expoModules , 'getExpoUpdates' ) . mockReturnValue ( undefined ) ;
5656
5757 const actualEvent = executeIntegrationFor ( { } ) ;
5858
59- expect ( actualEvent . contexts ?. [ EXPO_UPDATES_CONTEXT_KEY ] ) . toStrictEqual ( {
59+ expect ( actualEvent . contexts ?. [ OTA_UPDATES_CONTEXT_KEY ] ) . toStrictEqual ( {
6060 is_enabled : false ,
6161 } ) ;
6262 } ) ;
@@ -66,7 +66,7 @@ describe('Expo Context Integration', () => {
6666
6767 const actualEvent = executeIntegrationFor ( { } ) ;
6868
69- expect ( actualEvent . contexts ?. [ EXPO_UPDATES_CONTEXT_KEY ] ) . toStrictEqual ( {
69+ expect ( actualEvent . contexts ?. [ OTA_UPDATES_CONTEXT_KEY ] ) . toStrictEqual ( {
7070 is_enabled : false ,
7171 is_embedded_launch : false ,
7272 is_emergency_launch : false ,
@@ -87,7 +87,7 @@ describe('Expo Context Integration', () => {
8787
8888 const actualEvent = executeIntegrationFor ( { } ) ;
8989
90- expect ( actualEvent . contexts ?. [ EXPO_UPDATES_CONTEXT_KEY ] ) . toEqual ( {
90+ expect ( actualEvent . contexts ?. [ OTA_UPDATES_CONTEXT_KEY ] ) . toEqual ( {
9191 is_enabled : false ,
9292 is_embedded_launch : false ,
9393 is_emergency_launch : false ,
@@ -115,7 +115,7 @@ describe('Expo Context Integration', () => {
115115
116116 const actualEvent = executeIntegrationFor ( { } ) ;
117117
118- expect ( actualEvent . contexts ?. [ EXPO_UPDATES_CONTEXT_KEY ] ) . toStrictEqual ( {
118+ expect ( actualEvent . contexts ?. [ OTA_UPDATES_CONTEXT_KEY ] ) . toStrictEqual ( {
119119 is_enabled : false ,
120120 is_embedded_launch : false ,
121121 is_emergency_launch : false ,
@@ -141,7 +141,7 @@ describe('Expo Context Integration', () => {
141141
142142 const actualEvent = executeIntegrationFor ( { } ) ;
143143
144- expect ( actualEvent . contexts ?. [ EXPO_UPDATES_CONTEXT_KEY ] ) . toStrictEqual ( {
144+ expect ( actualEvent . contexts ?. [ OTA_UPDATES_CONTEXT_KEY ] ) . toStrictEqual ( {
145145 is_enabled : true ,
146146 is_embedded_launch : false ,
147147 is_emergency_launch : false ,
0 commit comments