@@ -131,10 +131,10 @@ describe('Google Analytics', function() {
131131 analytics . initialize ( ) ;
132132 analytics . page ( ) ;
133133
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
135135 // but the tests expect the option name to == the parameter passed
136136 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 ' ) ;
138138 window . ga . q [ 0 ] [ 2 ] = gaOptsOmitAmp ;
139139
140140 analytics . deepEqual ( toArray ( window . ga . q [ 0 ] ) , [ 'create' , settings . trackingId , expectedOptsOmitAmp ] ) ;
@@ -153,17 +153,17 @@ describe('Google Analytics', function() {
153153 analytics . initialize ( ) ;
154154 analytics . page ( ) ;
155155
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
157157 // but the tests expect the option name to == the parameter passed
158158 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 ' ) ;
160160 window . ga . q [ 0 ] [ 2 ] = gaOptsOmitAmp ;
161161
162162 analytics . deepEqual ( toArray ( window . ga . q [ 0 ] ) , [ 'create' , settings . trackingId , expectedOptsOmitAmp ] ) ;
163163 } ) ;
164164
165165 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 ;
167167 var expectedOpts = {
168168 cookieDomain : 'none' ,
169169 useGoogleAmpClientId : true ,
@@ -174,10 +174,10 @@ describe('Google Analytics', function() {
174174
175175 analytics . initialize ( ) ;
176176 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
178178 // but the tests expect the option name to == the parameter passed
179179 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 ' ) ;
181181 window . ga . q [ 0 ] [ 2 ] = gaOptsOmitAmp ;
182182
183183 analytics . deepEqual ( toArray ( window . ga . q [ 0 ] ) , [ 'create' , settings . trackingId , expectedOptsOmitAmp ] ) ;
0 commit comments