@@ -35,7 +35,7 @@ describe('ReportingLogger', () => {
3535
3636 Object . defineProperty ( window , 'mParticle' , {
3737 writable : true ,
38- value : { config : { isWebSdkLoggingEnabled : true } }
38+ value : { config : { isLoggingEnabled : true } }
3939 } ) ;
4040
4141 Object . defineProperty ( window , 'ROKT_DOMAIN' , {
@@ -44,7 +44,7 @@ describe('ReportingLogger', () => {
4444 } ) ;
4545
4646 logger = new ReportingLogger (
47- { loggingUrl, errorUrl, isWebSdkLoggingEnabled : true } as SDKConfig ,
47+ { loggingUrl, errorUrl, isLoggingEnabled : true } as SDKConfig ,
4848 sdkVersion ,
4949 mockStore as IStore ,
5050 'test-launcher-instance-guid'
@@ -99,7 +99,7 @@ describe('ReportingLogger', () => {
9999 value : undefined
100100 } ) ;
101101 logger = new ReportingLogger (
102- { loggingUrl, errorUrl, isWebSdkLoggingEnabled : true } as SDKConfig ,
102+ { loggingUrl, errorUrl, isLoggingEnabled : true } as SDKConfig ,
103103 sdkVersion ,
104104 mockStore as IStore ,
105105 'test-launcher-instance-guid'
@@ -111,14 +111,14 @@ describe('ReportingLogger', () => {
111111 it ( 'does not log if feature flag and debug mode off' , ( ) => {
112112 Object . defineProperty ( window , 'mParticle' , {
113113 writable : true ,
114- value : { config : { isWebSdkLoggingEnabled : false } }
114+ value : { config : { isLoggingEnabled : false } }
115115 } ) ;
116116 Object . defineProperty ( window , 'location' , {
117117 writable : true ,
118118 value : { href : 'https://e.com' , search : '' }
119119 } ) ;
120120 logger = new ReportingLogger (
121- { loggingUrl, errorUrl, isWebSdkLoggingEnabled : false } as SDKConfig ,
121+ { loggingUrl, errorUrl, isLoggingEnabled : false } as SDKConfig ,
122122 sdkVersion ,
123123 mockStore as IStore ,
124124 'test-launcher-instance-guid'
@@ -130,14 +130,14 @@ describe('ReportingLogger', () => {
130130 it ( 'logs if debug mode on even if feature flag off' , ( ) => {
131131 Object . defineProperty ( window , 'mParticle' , {
132132 writable : true ,
133- value : { config : { isWebSdkLoggingEnabled : false } }
133+ value : { config : { isLoggingEnabled : false } }
134134 } ) ;
135135 Object . defineProperty ( window , 'location' , {
136136 writable : true ,
137137 value : { href : 'https://e.com' , search : '?mp_enable_logging=true' }
138138 } ) ;
139139 logger = new ReportingLogger (
140- { loggingUrl, errorUrl, isWebSdkLoggingEnabled : false } as SDKConfig ,
140+ { loggingUrl, errorUrl, isLoggingEnabled : false } as SDKConfig ,
141141 sdkVersion ,
142142 mockStore as IStore ,
143143 'test-launcher-instance-guid'
@@ -156,7 +156,7 @@ describe('ReportingLogger', () => {
156156 value : { href : 'https://e.com' , search : '?mp_enable_logging=true' }
157157 } ) ;
158158 logger = new ReportingLogger (
159- { loggingUrl, errorUrl, isWebSdkLoggingEnabled : false } as SDKConfig ,
159+ { loggingUrl, errorUrl, isLoggingEnabled : false } as SDKConfig ,
160160 sdkVersion ,
161161 mockStore as IStore ,
162162 'test-launcher-instance-guid'
@@ -173,7 +173,7 @@ describe('ReportingLogger', () => {
173173 } ) ,
174174 } ;
175175 logger = new ReportingLogger (
176- { loggingUrl, errorUrl, isWebSdkLoggingEnabled : true } as SDKConfig ,
176+ { loggingUrl, errorUrl, isLoggingEnabled : true } as SDKConfig ,
177177 sdkVersion ,
178178 mockStore as IStore ,
179179 'test-launcher-instance-guid' ,
@@ -201,7 +201,7 @@ describe('ReportingLogger', () => {
201201 value : undefined
202202 } ) ;
203203 logger = new ReportingLogger (
204- { loggingUrl, errorUrl, isWebSdkLoggingEnabled : true } as SDKConfig ,
204+ { loggingUrl, errorUrl, isLoggingEnabled : true } as SDKConfig ,
205205 sdkVersion ,
206206 mockStore as IStore ,
207207 'test-launcher-instance-guid'
@@ -217,7 +217,7 @@ describe('ReportingLogger', () => {
217217
218218 it ( 'can set store after initialization' , ( ) => {
219219 const loggerWithoutStore = new ReportingLogger (
220- { loggingUrl, errorUrl, isWebSdkLoggingEnabled : true } as SDKConfig ,
220+ { loggingUrl, errorUrl, isLoggingEnabled : true } as SDKConfig ,
221221 sdkVersion ,
222222 undefined ,
223223 'test-launcher-instance-guid'
@@ -255,7 +255,7 @@ describe('ReportingLogger', () => {
255255
256256 it ( 'omits rokt-launcher-instance-guid header when launcherInstanceGuid is undefined' , ( ) => {
257257 logger = new ReportingLogger (
258- { loggingUrl, errorUrl, isWebSdkLoggingEnabled : true } as SDKConfig ,
258+ { loggingUrl, errorUrl, isLoggingEnabled : true } as SDKConfig ,
259259 sdkVersion ,
260260 mockStore as IStore ,
261261 undefined
0 commit comments