@@ -131,10 +131,10 @@ describe('Google Analytics', function() {
131
131
analytics . initialize ( ) ;
132
132
analytics . page ( ) ;
133
133
134
- // some workaround for useGoogleAmpClientId as the name passed to GA needed to change to useAMPclientID
134
+ // some workaround for useGoogleAmpClientId as the name passed to GA needed to change to useAmpClientId
135
135
// but the tests expect the option name to == the parameter passed
136
136
var expectedOptsOmitAmp = _ . omit ( expectedOpts , [ 'useGoogleAmpClientId' ] ) ;
137
- var gaOptsOmitAmp = _ . omit ( window . ga . q [ 0 ] [ 2 ] , 'useAMPclientID ' ) ;
137
+ var gaOptsOmitAmp = _ . omit ( window . ga . q [ 0 ] [ 2 ] , 'useAmpClientId ' ) ;
138
138
window . ga . q [ 0 ] [ 2 ] = gaOptsOmitAmp ;
139
139
140
140
analytics . deepEqual ( toArray ( window . ga . q [ 0 ] ) , [ 'create' , settings . trackingId , expectedOptsOmitAmp ] ) ;
@@ -153,17 +153,17 @@ describe('Google Analytics', function() {
153
153
analytics . initialize ( ) ;
154
154
analytics . page ( ) ;
155
155
156
- // some workaround for useGoogleAmpClientId as the name passed to GA needed to change to useAMPclientID
156
+ // some workaround for useGoogleAmpClientId as the name passed to GA needed to change to useAmpClientId
157
157
// but the tests expect the option name to == the parameter passed
158
158
var expectedOptsOmitAmp = _ . omit ( expectedOpts , [ 'useGoogleAmpClientId' ] ) ;
159
- var gaOptsOmitAmp = _ . omit ( window . ga . q [ 0 ] [ 2 ] , 'useAMPclientID ' ) ;
159
+ var gaOptsOmitAmp = _ . omit ( window . ga . q [ 0 ] [ 2 ] , 'useAmpClientId ' ) ;
160
160
window . ga . q [ 0 ] [ 2 ] = gaOptsOmitAmp ;
161
161
162
162
analytics . deepEqual ( toArray ( window . ga . q [ 0 ] ) , [ 'create' , settings . trackingId , expectedOptsOmitAmp ] ) ;
163
163
} ) ;
164
164
165
165
it ( 'should use AMP Id as the Client Id if the setting is enabled' , function ( ) {
166
- ga . options . useAMPclientID = true ;
166
+ ga . options . useAmpClientId = true ;
167
167
var expectedOpts = {
168
168
cookieDomain : 'none' ,
169
169
useGoogleAmpClientId : true ,
@@ -174,10 +174,10 @@ describe('Google Analytics', function() {
174
174
175
175
analytics . initialize ( ) ;
176
176
analytics . page ( ) ;
177
- // some workaround for useGoogleAmpClientId as the name passed to GA needed to change to useAMPclientID
177
+ // some workaround for useGoogleAmpClientId as the name passed to GA needed to change to uuseAmpClientId
178
178
// but the tests expect the option name to == the parameter passed
179
179
var expectedOptsOmitAmp = _ . omit ( expectedOpts , [ 'useGoogleAmpClientId' ] ) ;
180
- var gaOptsOmitAmp = _ . omit ( window . ga . q [ 0 ] [ 2 ] , 'useAMPclientID ' ) ;
180
+ var gaOptsOmitAmp = _ . omit ( window . ga . q [ 0 ] [ 2 ] , 'useAmpClientId ' ) ;
181
181
window . ga . q [ 0 ] [ 2 ] = gaOptsOmitAmp ;
182
182
183
183
analytics . deepEqual ( toArray ( window . ga . q [ 0 ] ) , [ 'create' , settings . trackingId , expectedOptsOmitAmp ] ) ;
0 commit comments